public class SyndImageImpl extends Object implements Serializable, SyndImage
Constructor and Description |
---|
SyndImageImpl() |
Modifier and Type | Method and Description |
---|---|
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(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.
|
Integer |
getHeight()
Returns the image height.
|
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.
|
Integer |
getWidth()
Returns the image width.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setDescription(String description)
Sets the image description.
|
void |
setHeight(Integer height)
Sets the image height.
|
void |
setLink(String link)
Sets the image link.
|
void |
setTitle(String title)
Sets the image title.
|
void |
setUrl(String url)
Sets the image URL.
|
void |
setWidth(Integer width)
Sets the image width.
|
String |
toString()
Returns the String representation for the object.
|
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)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public String getTitle()
public void setTitle(String title)
public String getUrl()
public void setUrl(String url)
public Integer getWidth()
public void setWidth(Integer width)
public Integer getHeight()
public void setHeight(Integer height)
public String getLink()
public void setLink(String link)
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
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.
Copyright © 2023. All rights reserved.