001/* 002 * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Anahide Tchertchian 016 */ 017package org.nuxeo.theme.styling.service.descriptors; 018 019import java.io.Serializable; 020 021import org.nuxeo.common.xmap.annotation.XNode; 022import org.nuxeo.common.xmap.annotation.XObject; 023 024/** 025 * @since 5.5 026 */ 027@XObject("logo") 028public class LogoDescriptor implements Serializable { 029 030 private static final long serialVersionUID = 1L; 031 032 @XNode("path") 033 String path; 034 035 @XNode("previewPath") 036 String previewPath; 037 038 @XNode("width") 039 String width; 040 041 @XNode("height") 042 String height; 043 044 @XNode("title") 045 String title; 046 047 public String getPath() { 048 return path; 049 } 050 051 public void setPath(String path) { 052 this.path = path; 053 } 054 055 public String getPreviewPath() { 056 return previewPath; 057 } 058 059 public void setPreviewPath(String previewPath) { 060 this.previewPath = previewPath; 061 } 062 063 public String getWidth() { 064 return width; 065 } 066 067 public void setWidth(String width) { 068 this.width = width; 069 } 070 071 public String getHeight() { 072 return height; 073 } 074 075 public void setHeight(String height) { 076 this.height = height; 077 } 078 079 public String getTitle() { 080 return title; 081 } 082 083 public void setTitle(String title) { 084 this.title = title; 085 } 086 087 public LogoDescriptor clone() { 088 LogoDescriptor cLogo = new LogoDescriptor(); 089 cLogo.setHeight(getHeight()); 090 cLogo.setWidth(getWidth()); 091 cLogo.setTitle(getTitle()); 092 cLogo.setPath(getPath()); 093 cLogo.setPreviewPath(getPreviewPath()); 094 return cLogo; 095 } 096 097}