View Javadoc

1   /*
2    * Copyright 2004 Sun Microsystems, Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  package com.sun.syndication.feed.synd;
18  
19  import com.sun.syndication.common.ObjectBean;
20  
21  /***
22   * Bean for images of SyndFeed feeds.
23   * <p>
24   * @author Alejandro Abdelnur
25   *
26   */
27  public class SyndImage extends ObjectBean implements SyndImageI {
28      private String _title;
29      private String _url;
30      private String _link;
31      private String _description;
32  
33      /***
34       * Default constructor. All properties are set to <b>null</b>.
35       * <p>
36       *
37       */
38      public SyndImage() {
39      }
40  
41      /***
42       * Returns the image title.
43       * <p>
44       * @return the image title, <b>null</b> if none.
45       *
46       */
47      public String getTitle() {
48          return _title;
49      }
50  
51      /***
52       * Sets the image title.
53       * <p>
54       * @param title the image title to set, <b>null</b> if none.
55       *
56       */
57      public void setTitle(String title) {
58          _title = title;
59      }
60  
61      /***
62       * Returns the image URL.
63       * <p>
64       * @return the image URL, <b>null</b> if none.
65       *
66       */
67      public String getUrl() {
68          return _url;
69      }
70  
71      /***
72       * Sets the image URL.
73       * <p>
74       * @param url the image URL to set, <b>null</b> if none.
75       *
76       */
77      public void setUrl(String url) {
78          _url = url;
79      }
80  
81      /***
82       * Returns the image link.
83       * <p>
84       * @return the image link, <b>null</b> if none.
85       *
86       */
87      public String getLink() {
88          return _link;
89      }
90  
91      /***
92       * Sets the image link.
93       * <p>
94       * @param link the image link to set, <b>null</b> if none.
95       *
96       */
97      public void setLink(String link) {
98          _link = link;
99      }
100 
101     /***
102      * Returns the image description.
103      * <p>
104      * @return the image description, <b>null</b> if none.
105      *
106      */
107     public String getDescription() {
108         return _description;
109     }
110 
111     /***
112      * Sets the image description.
113      * <p>
114      * @param description the image description to set, <b>null</b> if none.
115      *
116      */
117     public void setDescription(String description) {
118         _description = description;
119     }
120 
121 }