|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.feed.synd.SyndImageImpl
public class SyndImageImpl
Bean for images of SyndFeedImpl feeds.
Constructor Summary | |
---|---|
SyndImageImpl()
Default constructor. |
Method Summary | |
---|---|
Object |
clone()
Creates a deep 'bean' clone of the object. |
void |
copyFrom(CopyFrom<? extends SyndImage> syndImage)
Copies all the properties of the given bean into this one. |
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method. |
String |
getDescription()
Returns the image description. |
Class<SyndImage> |
getInterface()
Returns the interface the copyFrom works on. |
String |
getLink()
Returns the image link. |
String |
getTitle()
Returns the image title. |
String |
getUrl()
Returns the image URL. |
int |
hashCode()
Returns a hashcode value for the object. |
void |
setDescription(String description)
Sets the image description. |
void |
setLink(String link)
Sets the image link. |
void |
setTitle(String title)
Sets the image title. |
void |
setUrl(String url)
Sets the image URL. |
String |
toString()
Returns the String representation for the object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyndImageImpl()
Method Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in interface SyndImage
clone
in class Object
CloneNotSupportedException
- thrown if an element of the object
cannot be cloned.public boolean equals(Object other)
equals
in class Object
other
- he reference object with which to compare.
public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode
in class Object
public String toString()
toString
in class Object
public String getTitle()
getTitle
in interface SyndImage
public void setTitle(String title)
setTitle
in interface SyndImage
title
- the image title to set, null if none.public String getUrl()
getUrl
in interface SyndImage
public void setUrl(String url)
setUrl
in interface SyndImage
url
- the image URL to set, null if none.public String getLink()
getLink
in interface SyndImage
public void setLink(String link)
setLink
in interface SyndImage
link
- the image link to set, null if none.public String getDescription()
getDescription
in interface SyndImage
public void setDescription(String description)
setDescription
in interface SyndImage
description
- the image description to set, null if none.public Class<SyndImage> getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom<SyndImage>
public void copyFrom(CopyFrom<? extends SyndImage> syndImage)
CopyFrom
Any existing properties in this bean are lost.
This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
copyFrom
in interface CopyFrom<SyndImage>
syndImage
- the instance to copy properties from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |