001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.commons.betwixt.examples.rss;
019:
020: import java.io.Serializable;
021:
022: /**
023: * <p>Implementation object representing an <strong>image</strong> in the
024: * <em>Rich Site Summary</em> DTD, version 0.91. This class may be subclassed
025: * to further specialize its behavior.</p>
026: *
027: * <p>Based on the Jakarta Commons <code>Digester</code> implementation.</p>
028: *
029: * @author Craig R. McClanahan
030: * @version $Revision: 438373 $ $Date: 2006-08-30 06:17:21 +0100 (Wed, 30 Aug 2006) $
031: */
032:
033: public class Image implements Serializable {
034:
035: // ------------------------------------------------------------- Properties
036:
037: /**
038: * The image description (1-100 characters).
039: */
040: protected String description = null;
041:
042: public String getDescription() {
043: return (this .description);
044: }
045:
046: public void setDescription(String description) {
047: this .description = description;
048: }
049:
050: /**
051: * The image height in pixels (1-400).
052: */
053: protected int height = 31;
054:
055: public int getHeight() {
056: return (this .height);
057: }
058:
059: public void setHeight(int height) {
060: this .height = height;
061: }
062:
063: /**
064: * The image link (1-500 characters).
065: */
066: protected String link = null;
067:
068: public String getLink() {
069: return (this .link);
070: }
071:
072: public void setLink(String link) {
073: this .link = link;
074: }
075:
076: /**
077: * The image alternate text (1-100 characters).
078: */
079: protected String title = null;
080:
081: public String getTitle() {
082: return (this .title);
083: }
084:
085: public void setTitle(String title) {
086: this .title = title;
087: }
088:
089: /**
090: * The image location URL (1-500 characters).
091: */
092: protected String url = null;
093:
094: public String getURL() {
095: return (this .url);
096: }
097:
098: public void setURL(String url) {
099: this .url = url;
100: }
101:
102: /**
103: * The image width in pixels (1-400).
104: */
105: protected int width = 31;
106:
107: public int getWidth() {
108: return (this .width);
109: }
110:
111: public void setWidth(int width) {
112: this.width = width;
113: }
114: }
|