com.sun.syndication.feed.atom
Class Content

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

public class Content
extends ObjectBean

Bean for content elements of Atom feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Nested Class Summary
static class Content.Mode
          Enumeration type for the 'mode' property of Atom content elements.
 
Field Summary
static Content.Mode BASE64
           
static Content.Mode ESCAPED
           
static Content.Mode XML
           
 
Constructor Summary
Content()
          Default constructor.
 
Method Summary
 Content.Mode getMode()
          Returns the content mode.
 java.lang.String getType()
          Returns the content type.
 java.lang.String getValue()
          Returns the content value.
 void setMode(Content.Mode mode)
          Sets the content mode.
 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
 

Field Detail

XML

public static final Content.Mode XML

BASE64

public static final Content.Mode BASE64

ESCAPED

public static final Content.Mode ESCAPED
Constructor Detail

Content

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

Method Detail

getType

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

Returns:
the content type, null if none.

setType

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

Parameters:
type - the content type, null if none.

getMode

public Content.Mode getMode()
Returns the content mode.

The mode indicates how the value was/will-be encoded in the XML feed.

Returns:
the content mode, null if none.

setMode

public void setMode(Content.Mode mode)
Sets the content mode.

The mode indicates how the value was/will-be encoded in the XML feed.

Parameters:
mode - the content mode, null if none.

getValue

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

The return value should be decoded.

Returns:
the content value, null if none.

setValue

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

The value being set should be decoded.

Parameters:
value - the content value, null if none.


Copyright © 2004 Sun Microsystems. All Rights Reserved.