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 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 { 029 030 @XNode("path") 031 String path; 032 033 @XNode("previewPath") 034 String previewPath; 035 036 @XNode("width") 037 String width; 038 039 @XNode("height") 040 String height; 041 042 @XNode("title") 043 String title; 044 045 public String getPath() { 046 return path; 047 } 048 049 public void setPath(String path) { 050 this.path = path; 051 } 052 053 public String getPreviewPath() { 054 return previewPath; 055 } 056 057 public void setPreviewPath(String previewPath) { 058 this.previewPath = previewPath; 059 } 060 061 public String getWidth() { 062 return width; 063 } 064 065 public void setWidth(String width) { 066 this.width = width; 067 } 068 069 public String getHeight() { 070 return height; 071 } 072 073 public void setHeight(String height) { 074 this.height = height; 075 } 076 077 public String getTitle() { 078 return title; 079 } 080 081 public void setTitle(String title) { 082 this.title = title; 083 } 084 085 @Override 086 public LogoDescriptor clone() { 087 LogoDescriptor cLogo = new LogoDescriptor(); 088 cLogo.setHeight(getHeight()); 089 cLogo.setWidth(getWidth()); 090 cLogo.setTitle(getTitle()); 091 cLogo.setPath(getPath()); 092 cLogo.setPreviewPath(getPreviewPath()); 093 return cLogo; 094 } 095 096}