001: /*
002: * Copyright 2004 Sun Microsystems, Inc.
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: */
017: package com.sun.syndication.feed.synd;
018:
019: import com.sun.syndication.feed.CopyFrom;
020:
021: /**
022: * Bean interface for images of SyndFeedImpl feeds.
023: * <p>
024: * @author Alejandro Abdelnur
025: *
026: */
027: public interface SyndImage extends Cloneable, CopyFrom {
028: /**
029: * Returns the image title.
030: * <p>
031: * @return the image title, <b>null</b> if none.
032: *
033: */
034: String getTitle();
035:
036: /**
037: * Sets the image title.
038: * <p>
039: * @param title the image title to set, <b>null</b> if none.
040: *
041: */
042: void setTitle(String title);
043:
044: /**
045: * Returns the image URL.
046: * <p>
047: * @return the image URL, <b>null</b> if none.
048: *
049: */
050: String getUrl();
051:
052: /**
053: * Sets the image URL.
054: * <p>
055: * @param url the image URL to set, <b>null</b> if none.
056: *
057: */
058: void setUrl(String url);
059:
060: /**
061: * Returns the image link.
062: * <p>
063: * @return the image link, <b>null</b> if none.
064: *
065: */
066: String getLink();
067:
068: /**
069: * Sets the image link.
070: * <p>
071: * @param link the image link to set, <b>null</b> if none.
072: *
073: */
074: void setLink(String link);
075:
076: /**
077: * Returns the image description.
078: * <p>
079: * @return the image description, <b>null</b> if none.
080: *
081: */
082: String getDescription();
083:
084: /**
085: * Sets the image description.
086: * <p>
087: * @param description the image description to set, <b>null</b> if none.
088: *
089: */
090: void setDescription(String description);
091:
092: /**
093: * Creates a deep clone of the object.
094: * <p>
095: * @return a clone of the object.
096: * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
097: *
098: */
099: public Object clone() throws CloneNotSupportedException;
100:
101: }
|