Top Description Fields Constructors Methods
com.rometools.rome.feed.synd

public Class SyndImageImpl

extends Object
implements Serializable, SyndImage
Class Inheritance
All Implemented Interfaces
com.rometools.rome.feed.synd.SyndImage, com.rometools.rome.feed.CopyFrom, java.lang.Cloneable, java.io.Serializable
Imports
java.io.Serializable, java.util.Collections, .HashMap, .Map, com.rometools.rome.feed.CopyFrom, com.rometools.rome.feed.impl.CloneableBean, .CopyFromHelper, .EqualsBean, .ToStringBean

Bean for images of SyndFeedImpl feeds.

Field Summary

Modifier and TypeField and Description
private static final CopyFromHelper
private String
private Integer
private String
private static final long
private String
private String
private Integer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndImage.clone.

Creates a deep 'bean' clone of the object.
public void
copyFrom(final CopyFrom
the instance to copy properties from.
syndImage
)

Implements com.rometools.rome.feed.CopyFrom.copyFrom.

Copies all the properties of the given bean into this one.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
public String

Returns:

the image description, null if none.
getDescription
()

Implements com.rometools.rome.feed.synd.SyndImage.getDescription.

Returns the image description.
public Integer

Returns:

the image height, null if none.
getHeight
()

Implements com.rometools.rome.feed.synd.SyndImage.getHeight.

Returns the image height.
public Class<SyndImage>
getInterface()

Implements com.rometools.rome.feed.CopyFrom.getInterface.

Returns the interface the copyFrom works on.
public String

Returns:

the image title, null if none.
getTitle
()

Implements com.rometools.rome.feed.synd.SyndImage.getTitle.

Returns the image title.
public String

Returns:

the image URL, null if none.
getUrl
()

Implements com.rometools.rome.feed.synd.SyndImage.getUrl.

Returns the image URL.
public Integer

Returns:

the image width, null if none.
getWidth
()

Implements com.rometools.rome.feed.synd.SyndImage.getWidth.

Returns the image width.
public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public void
setDescription(final String
the image description to set, null if none.
description
)

Implements com.rometools.rome.feed.synd.SyndImage.setDescription.

Sets the image description.
public void
setHeight(Integer
the image height to set, null if none.
height
)

Implements com.rometools.rome.feed.synd.SyndImage.setHeight.

Sets the image height.
public void
setTitle(final String
the image title to set, null if none.
title
)

Implements com.rometools.rome.feed.synd.SyndImage.setTitle.

Sets the image title.
public void
setUrl(final String
the image URL to set, null if none.
url
)

Implements com.rometools.rome.feed.synd.SyndImage.setUrl.

Sets the image URL.
public void
setWidth(Integer
the image width to set, null if none.
width
)

Implements com.rometools.rome.feed.synd.SyndImage.setWidth.

Sets the image width.
public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

COPY_FROM_HELPERback to summary
private static final CopyFromHelper COPY_FROM_HELPER
descriptionback to summary
private String description
heightback to summary
private Integer height
serialVersionUIDback to summary
private static final long serialVersionUID
titleback to summary
private String title
urlback to summary
private String url
widthback to summary
private Integer width

Constructor Detail

SyndImageImplback to summary
public SyndImageImpl()

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndImage.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
copyFromback to summary
public void copyFrom(final CopyFrom syndImage)

Implements com.rometools.rome.feed.CopyFrom.copyFrom.

Doc from com.rometools.rome.feed.CopyFrom.copyFrom.

Copies 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.

Parameters
syndImage:CopyFrom

the instance to copy properties from.

Annotations
@Override
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

true if 'this' object is equal to the 'other' object.

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements com.rometools.rome.feed.synd.SyndImage.getDescription.

Returns the image description.

Returns:String

the image description, null if none.

Annotations
@Override
getHeightback to summary
public Integer getHeight()

Implements com.rometools.rome.feed.synd.SyndImage.getHeight.

Returns the image height.

Returns:Integer

the image height, null if none.

Annotations
@Override
getInterfaceback to summary
public Class<SyndImage> getInterface()

Implements com.rometools.rome.feed.CopyFrom.getInterface.

Doc from com.rometools.rome.feed.CopyFrom.getInterface.

Returns the interface the copyFrom works on.

This is useful when dealing with properties that may have multiple implementations. For example, Module.

Returns:Class<SyndImage>

the interface the copyFrom works on.

Annotations
@Override
getTitleback to summary
public String getTitle()

Implements com.rometools.rome.feed.synd.SyndImage.getTitle.

Returns the image title.

Returns:String

the image title, null if none.

Annotations
@Override
getUrlback to summary
public String getUrl()

Implements com.rometools.rome.feed.synd.SyndImage.getUrl.

Returns the image URL.

Returns:String

the image URL, null if none.

Annotations
@Override
getWidthback to summary
public Integer getWidth()

Implements com.rometools.rome.feed.synd.SyndImage.getWidth.

Returns the image width.

Returns:Integer

the image width, null if none.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns:int

the hashcode of the bean object.

Annotations
@Override
setDescriptionback to summary
public void setDescription(final String description)

Implements com.rometools.rome.feed.synd.SyndImage.setDescription.

Sets the image description.

Parameters
description:String

the image description to set, null if none.

Annotations
@Override
setHeightback to summary
public void setHeight(Integer height)

Implements com.rometools.rome.feed.synd.SyndImage.setHeight.

Sets the image height.

Parameters
height:Integer

the image height to set, null if none.

Annotations
@Override
setTitleback to summary
public void setTitle(final String title)

Implements com.rometools.rome.feed.synd.SyndImage.setTitle.

Sets the image title.

Parameters
title:String

the image title to set, null if none.

Annotations
@Override
setUrlback to summary
public void setUrl(final String url)

Implements com.rometools.rome.feed.synd.SyndImage.setUrl.

Sets the image URL.

Parameters
url:String

the image URL to set, null if none.

Annotations
@Override
setWidthback to summary
public void setWidth(Integer width)

Implements com.rometools.rome.feed.synd.SyndImage.setWidth.

Sets the image width.

Parameters
width:Integer

the image width to set, null if none.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override