com.sun.syndication.feed.atom
Class Content

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

public class Content
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Bean for content elements of Atom feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Field Summary
static java.lang.String BASE64
           
static java.lang.String ESCAPED
           
static java.lang.String XML
           
 
Constructor Summary
Content()
          Default constructor.
 
Method Summary
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 java.lang.String getMode()
          Returns the content mode.
 java.lang.String getType()
          Returns the content type.
 java.lang.String getValue()
          Returns the content value.
 int hashCode()
          Returns a hashcode value for the object.
 void setMode(java.lang.String 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.
 java.lang.String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

XML

public static final java.lang.String XML
See Also:
Constant Field Values

BASE64

public static final java.lang.String BASE64
See Also:
Constant Field Values

ESCAPED

public static final java.lang.String ESCAPED
See Also:
Constant Field Values
Constructor Detail

Content

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

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a deep 'bean' clone of the object.

Returns:
a clone of the object.
Throws:
java.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

public boolean equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters:
other - he reference object with which to compare.
Returns:
true if 'this' object is equal to the 'other' object.

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns:
the hashcode of the bean object.

toString

public java.lang.String toString()
Returns the String representation for the object.

Returns:
String representation for the object.

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 java.lang.String 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(java.lang.String 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-2005 Sun Microsystems. All Rights Reserved.