|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.common.ObjectBean
com.sun.syndication.feed.synd.SyndContentImpl
Bean for content of SyndFeedImpl entries.
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 |
protected SyndContentImpl(java.lang.Class beanClass)
beanClass
- public SyndContentImpl()
Method Detail |
public java.lang.String getType()
When used for the description of an entry, if null 'text/plain' must be assumed.
getType
in interface SyndContent
public void setType(java.lang.String type)
When used for the description of an entry, if null 'text/plain' must be assumed.
setType
in interface SyndContent
type
- the content type to set, null if none.public java.lang.String getValue()
getValue
in interface SyndContent
public void setValue(java.lang.String value)
setValue
in interface SyndContent
value
- the content value to set, null if none.public java.lang.Class getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom
public void copyFrom(java.lang.Object obj)
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.
copyFrom
in interface CopyFrom
obj
- the instance to copy properties from.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |