com.sun.syndication.feed.synd
Class SyndContentImpl

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

public class SyndContentImpl
extends ObjectBean
implements SyndContent

Bean for content of SyndFeedImpl entries.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
  SyndContentImpl()
          Default constructor.
protected SyndContentImpl(java.lang.Class beanClass)
          For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.
 
Method Summary
 void copyFrom(java.lang.Object obj)
          Copies all the properties of the given bean into this one.
 java.lang.Class getInterface()
          Returns the interface the copyFrom works on.
 java.lang.String getType()
          Returns the content type.
 java.lang.String getValue()
          Returns the content value.
 void setType(java.lang.String type)
          Sets the content type.
 void setValue(java.lang.String value)
          Sets the content value.
 
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.SyndContent
clone
 
Methods inherited from interface com.sun.syndication.common.ToString
toString
 

Constructor Detail

SyndContentImpl

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

Parameters:
beanClass -

SyndContentImpl

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

Method Detail

getType

public java.lang.String getType()
Returns the content type.

When used for the description of an entry, if null 'text/plain' must be assumed.

Specified by:
getType in interface SyndContent
Returns:
the content type, null if none.

setType

public void setType(java.lang.String type)
Sets the content type.

When used for the description of an entry, if null 'text/plain' must be assumed.

Specified by:
setType in interface SyndContent
Parameters:
type - the content type to set, null if none.

getValue

public java.lang.String getValue()
Returns the content value.

Specified by:
getValue in interface SyndContent
Returns:
the content value, null if none.

setValue

public void setValue(java.lang.String value)
Sets the content value.

Specified by:
setValue in interface SyndContent
Parameters:
value - the content value 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 obj)
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:
obj - the instance to copy properties from.


Copyright © 2004 Sun Microsystems. All Rights Reserved.