public class SyndImageImpl extends java.lang.Object implements java.io.Serializable, SyndImage
Modifier and Type | Field and Description |
---|---|
private static CopyFromHelper |
COPY_FROM_HELPER |
private java.lang.String |
description |
private java.lang.Integer |
height |
private java.lang.String |
link |
private ObjectBean |
objBean |
private static long |
serialVersionUID |
private java.lang.String |
title |
private java.lang.String |
url |
private java.lang.Integer |
width |
Constructor and Description |
---|
SyndImageImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a deep 'bean' clone of the object.
|
void |
copyFrom(CopyFrom syndImage)
Copies all the properties of the given bean into this one.
|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
java.lang.String |
getDescription()
Returns the image description.
|
java.lang.Integer |
getHeight()
Returns the image height.
|
java.lang.Class<SyndImage> |
getInterface()
Returns the interface the copyFrom works on.
|
java.lang.String |
getLink()
Returns the image link.
|
java.lang.String |
getTitle()
Returns the image title.
|
java.lang.String |
getUrl()
Returns the image URL.
|
java.lang.Integer |
getWidth()
Returns the image width.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setDescription(java.lang.String description)
Sets the image description.
|
void |
setHeight(java.lang.Integer height)
Sets the image height.
|
void |
setLink(java.lang.String link)
Sets the image link.
|
void |
setTitle(java.lang.String title)
Sets the image title.
|
void |
setUrl(java.lang.String url)
Sets the image URL.
|
void |
setWidth(java.lang.Integer width)
Sets the image width.
|
java.lang.String |
toString()
Returns the String representation for the object.
|
private static final long serialVersionUID
private static final CopyFromHelper COPY_FROM_HELPER
private final ObjectBean objBean
private java.lang.String title
private java.lang.String url
private java.lang.Integer width
private java.lang.Integer height
private java.lang.String link
private java.lang.String description
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object other)
equals
in class java.lang.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 java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.Integer getWidth()
public void setWidth(java.lang.Integer width)
public java.lang.Integer getHeight()
public void setHeight(java.lang.Integer height)
public java.lang.String getLink()
public void setLink(java.lang.String link)
public java.lang.String getDescription()
getDescription
in interface SyndImage
public void setDescription(java.lang.String description)
setDescription
in interface SyndImage
description
- the image description to set, null if none.public java.lang.Class<SyndImage> getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom
public void copyFrom(CopyFrom 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.