|
|||||||||||
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.SyndContent
Bean for content of SyndFeed entries.
Constructor Summary | |
SyndContent()
Default constructor. |
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.SyndContentI |
clone |
Methods inherited from interface com.sun.syndication.common.ToString |
toString |
Constructor Detail |
public SyndContent()
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 SyndContentI
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 SyndContentI
type
- the content type to set, null if none.public java.lang.String getValue()
getValue
in interface SyndContentI
public void setValue(java.lang.String value)
setValue
in interface SyndContentI
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, ModuleI.
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 SyndFeedI 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 |