Package com.rometools.rome.feed.synd
Class SyndImageImpl
- java.lang.Object
-
- com.rometools.rome.feed.synd.SyndImageImpl
-
- All Implemented Interfaces:
CopyFrom,SyndImage,Serializable,Cloneable
public class SyndImageImpl extends Object implements Serializable, SyndImage
Bean for images of SyndFeedImpl feeds.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyndImageImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.voidcopyFrom(CopyFrom syndImage)Copies all the properties of the given bean into this one.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.StringgetDescription()Returns the image description.IntegergetHeight()Returns the image height.Class<SyndImage>getInterface()Returns the interface the copyFrom works on.StringgetLink()Returns the image link.StringgetTitle()Returns the image title.StringgetUrl()Returns the image URL.IntegergetWidth()Returns the image width.inthashCode()Returns a hashcode value for the object.voidsetDescription(String description)Sets the image description.voidsetHeight(Integer height)Sets the image height.voidsetLink(String link)Sets the image link.voidsetTitle(String title)Sets the image title.voidsetUrl(String url)Sets the image URL.voidsetWidth(Integer width)Sets the image width.StringtoString()Returns the String representation for the object.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Specified by:
clonein interfaceSyndImage- Overrides:
clonein classObject- Returns:
- a clone of the object.
- Throws:
CloneNotSupportedException- thrown if an element of the object cannot be cloned.
-
equals
public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
-
hashCode
public int hashCode()
Returns a hashcode value for the object.It follows the contract defined by the Object hashCode() method.
-
toString
public String toString()
Returns the String representation for the object.
-
getTitle
public String getTitle()
Returns the image title.
-
setTitle
public void setTitle(String title)
Sets the image title.
-
getUrl
public String getUrl()
Returns the image URL.
-
setUrl
public void setUrl(String url)
Sets the image URL.
-
getWidth
public Integer getWidth()
Returns the image width.
-
setWidth
public void setWidth(Integer width)
Sets the image width.
-
getHeight
public Integer getHeight()
Returns the image height.
-
setHeight
public void setHeight(Integer height)
Sets the image height.
-
getLink
public String getLink()
Returns the image link.
-
setLink
public void setLink(String link)
Sets the image link.
-
getDescription
public String getDescription()
Returns the image description.- Specified by:
getDescriptionin interfaceSyndImage- Returns:
- the image description, null if none.
-
setDescription
public void setDescription(String description)
Sets the image description.- Specified by:
setDescriptionin interfaceSyndImage- Parameters:
description- the image description to set, null if none.
-
getInterface
public Class<SyndImage> getInterface()
Description copied from interface:CopyFromReturns the interface the copyFrom works on.This is useful when dealing with properties that may have multiple implementations. For example, Module.
- Specified by:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
copyFrom
public void copyFrom(CopyFrom syndImage)
Description copied from interface:CopyFromCopies all the properties of the given bean into this one.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.
-
-