com.sun.syndication.feed.synd
Class SyndImageImpl

java.lang.Object
  extended bycom.sun.syndication.common.ObjectBean
      extended bycom.sun.syndication.feed.synd.SyndImageImpl
All Implemented Interfaces:
java.lang.Cloneable, CopyFrom, java.io.Serializable, SyndImage, ToString

public class SyndImageImpl
extends ObjectBean
implements SyndImage

Bean for images of SyndFeedImpl feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
  SyndImageImpl()
          Default constructor.
protected SyndImageImpl(java.lang.Class beanClass)
          For implementations extending SyndImageImpl to be able to use the ObjectBean functionality with extended interfaces.
 
Method Summary
 void copyFrom(java.lang.Object syndImage)
          Copies all the properties of the given bean into this one.
 java.lang.String getDescription()
          Returns the image description.
 java.lang.Class 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.
 void setDescription(java.lang.String description)
          Sets the image description.
 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.
 
Methods inherited from class com.sun.syndication.common.ObjectBean
clone, equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.synd.SyndImage
clone
 
Methods inherited from interface com.sun.syndication.common.ToString
toString
 

Constructor Detail

SyndImageImpl

protected SyndImageImpl(java.lang.Class beanClass)
For implementations extending SyndImageImpl to be able to use the ObjectBean functionality with extended interfaces.

Parameters:
beanClass -

SyndImageImpl

public SyndImageImpl()
Default constructor. All properties are set to null.

Method Detail

getTitle

public java.lang.String getTitle()
Returns the image title.

Specified by:
getTitle in interface SyndImage
Returns:
the image title, null if none.

setTitle

public void setTitle(java.lang.String title)
Sets the image title.

Specified by:
setTitle in interface SyndImage
Parameters:
title - the image title to set, null if none.

getUrl

public java.lang.String getUrl()
Returns the image URL.

Specified by:
getUrl in interface SyndImage
Returns:
the image URL, null if none.

setUrl

public void setUrl(java.lang.String url)
Sets the image URL.

Specified by:
setUrl in interface SyndImage
Parameters:
url - the image URL to set, null if none.

getLink

public java.lang.String getLink()
Returns the image link.

Specified by:
getLink in interface SyndImage
Returns:
the image link, null if none.

setLink

public void setLink(java.lang.String link)
Sets the image link.

Specified by:
setLink in interface SyndImage
Parameters:
link - the image link to set, null if none.

getDescription

public java.lang.String getDescription()
Returns the image description.

Specified by:
getDescription in interface SyndImage
Returns:
the image description, null if none.

setDescription

public void setDescription(java.lang.String description)
Sets the image description.

Specified by:
setDescription in interface SyndImage
Parameters:
description - the image description to set, null if none.

getInterface

public java.lang.Class getInterface()
Description copied from interface: CopyFrom
Returns the interface the copyFrom works on.

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

Specified by:
getInterface in interface CopyFrom
Returns:
the interface the copyFrom works on.

copyFrom

public void copyFrom(java.lang.Object syndImage)
Description copied from interface: 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.

Specified by:
copyFrom in interface CopyFrom
Parameters:
syndImage - the instance to copy properties from.


Copyright © 2004 Sun Microsystems. All Rights Reserved.