1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 19 package org.apache.commons.betwixt.examples.rss; 20 21 import java.io.Serializable; 22 23 24 /** 25 * <p>Implementation object representing an <strong>image</strong> in the 26 * <em>Rich Site Summary</em> DTD, version 0.91. This class may be subclassed 27 * to further specialize its behavior.</p> 28 * 29 * <p>Based on the Apache Commons <code>Digester</code> implementation.</p> 30 * 31 * @author Craig R. McClanahan 32 * @version $Revision: 561230 $ $Date: 2007-07-31 05:17:09 +0100 (Tue, 31 Jul 2007) $ 33 */ 34 35 public class Image implements Serializable { 36 37 38 // ------------------------------------------------------------- Properties 39 40 41 /** 42 * The image description (1-100 characters). 43 */ 44 protected String description = null; 45 46 public String getDescription() { 47 return (this.description); 48 } 49 50 public void setDescription(String description) { 51 this.description = description; 52 } 53 54 55 /** 56 * The image height in pixels (1-400). 57 */ 58 protected int height = 31; 59 60 public int getHeight() { 61 return (this.height); 62 } 63 64 public void setHeight(int height) { 65 this.height = height; 66 } 67 68 69 /** 70 * The image link (1-500 characters). 71 */ 72 protected String link = null; 73 74 public String getLink() { 75 return (this.link); 76 } 77 78 public void setLink(String link) { 79 this.link = link; 80 } 81 82 83 /** 84 * The image alternate text (1-100 characters). 85 */ 86 protected String title = null; 87 88 public String getTitle() { 89 return (this.title); 90 } 91 92 public void setTitle(String title) { 93 this.title = title; 94 } 95 96 97 /** 98 * The image location URL (1-500 characters). 99 */ 100 protected String url = null; 101 102 public String getURL() { 103 return (this.url); 104 } 105 106 public void setURL(String url) { 107 this.url = url; 108 } 109 110 111 /** 112 * The image width in pixels (1-400). 113 */ 114 protected int width = 31; 115 116 public int getWidth() { 117 return (this.width); 118 } 119 120 public void setWidth(int width) { 121 this.width = width; 122 } 123 }