com.sun.syndication.feed.synd
Class SyndContent

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

public class SyndContent
extends ObjectBean
implements SyndContentI

Bean for content of SyndFeed entries.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
SyndContent()
          Default constructor.
 
Method Summary
 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

SyndContent

public SyndContent()
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 SyndContentI
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 SyndContentI
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 SyndContentI
Returns:
the content value, null if none.

setValue

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

Specified by:
setValue in interface SyndContentI
Parameters:
value - the content value to set, null if none.


Copyright © 2004 Sun Microsystems. All Rights Reserved.