com.sun.syndication.feed.atom
public class Content extends Object implements Cloneable, Serializable
| Field Summary | |
|---|---|
| static String | BASE64 Atom 0.3 only |
| static String | ESCAPED Atom 0.3 only |
| static String | HTML |
| static Set | MODES |
| static String | TEXT |
| static String | XHTML |
| static String | XML Atom 0.3 only |
| String | _mode |
| ObjectBean | _objBean |
| String | _src |
| String | _type |
| String | _value |
| Constructor Summary | |
|---|---|
| Content()
Default constructor. | |
| Method Summary | |
|---|---|
| Object | clone()
Creates a deep 'bean' clone of the object.
|
| boolean | equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
|
| String | getMode()
Returns the content mode (Atom 0.3 only).
|
| String | getSrc()
Returns the src
|
| String | getType()
Returns the content type.
|
| String | getValue()
Returns the content value.
|
| int | hashCode()
Returns a hashcode value for the object.
|
| void | setMode(String mode)
Sets the content mode (Atom 0.3 only).
|
| void | setSrc(String src)
Set the src
|
| void | setType(String type)
Sets the content type.
|
| void | setValue(String value)
Sets the content value.
|
| String | toString()
Returns the String representation for the object.
|
Since: Atom 1.0
Since: Atom 1.0
Since: Atom 1.0
Returns: a clone of the object.
Throws: CloneNotSupportedException thrown if an element of the object cannot be cloned.
Parameters: other he reference object with which to compare.
Returns: true if 'this' object is equal to the 'other' object.
The mode indicates how the value was/will-be encoded in the XML feed.
Returns: the content mode, null if none.
Returns: Returns the src.
Since: Atom 1.0
The type indicates how the value was/will-be encoded in the XML feed.
Since: Atom 1.0
The return value should be decoded.
Returns: the content value, null if none.
It follows the contract defined by the Object hashCode() method.
Returns: the hashcode of the bean object.
The mode indicates how the value was/will-be encoded in the XML feed.
Parameters: mode the content mode, null if none.
Parameters: src The src to set.
Since: Atom 1.0
The type indicates how the value was/will-be encoded in the XML feed.
Since: Atom 1.0
The value being set should be decoded.
Parameters: value the content value, null if none.
Returns: String representation for the object.