001/*
002 * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Anahide Tchertchian
018 */
019package org.nuxeo.theme.styling.service.descriptors;
020
021import java.io.Serializable;
022
023import org.nuxeo.common.xmap.annotation.XNode;
024import org.nuxeo.common.xmap.annotation.XObject;
025
026/**
027 * @since 5.5
028 */
029@XObject("logo")
030public class LogoDescriptor implements Serializable {
031
032    private static final long serialVersionUID = 1L;
033
034    @XNode("path")
035    String path;
036
037    @XNode("previewPath")
038    String previewPath;
039
040    @XNode("width")
041    String width;
042
043    @XNode("height")
044    String height;
045
046    @XNode("title")
047    String title;
048
049    public String getPath() {
050        return path;
051    }
052
053    public void setPath(String path) {
054        this.path = path;
055    }
056
057    public String getPreviewPath() {
058        return previewPath;
059    }
060
061    public void setPreviewPath(String previewPath) {
062        this.previewPath = previewPath;
063    }
064
065    public String getWidth() {
066        return width;
067    }
068
069    public void setWidth(String width) {
070        this.width = width;
071    }
072
073    public String getHeight() {
074        return height;
075    }
076
077    public void setHeight(String height) {
078        this.height = height;
079    }
080
081    public String getTitle() {
082        return title;
083    }
084
085    public void setTitle(String title) {
086        this.title = title;
087    }
088
089    public LogoDescriptor clone() {
090        LogoDescriptor cLogo = new LogoDescriptor();
091        cLogo.setHeight(getHeight());
092        cLogo.setWidth(getWidth());
093        cLogo.setTitle(getTitle());
094        cLogo.setPath(getPath());
095        cLogo.setPreviewPath(getPreviewPath());
096        return cLogo;
097    }
098
099}