com.sun.syndication.feed.atom
public class Content extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE64
Atom 0.3 only
|
static java.lang.String |
ESCAPED
Atom 0.3 only
|
static java.lang.String |
HTML |
static java.lang.String |
TEXT |
static java.lang.String |
XHTML |
static java.lang.String |
XML
Atom 0.3 only
|
Constructor and Description |
---|
Content()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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 (Atom 0.3 only).
|
java.lang.String |
getSrc()
Returns the src
|
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 (Atom 0.3 only).
|
void |
setSrc(java.lang.String src)
Set the src
|
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.
|
public static final java.lang.String TEXT
public static final java.lang.String HTML
public static final java.lang.String XHTML
public static final java.lang.String XML
public static final java.lang.String BASE64
public static final java.lang.String ESCAPED
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- he reference object with which to compare.public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getType()
The type indicates how the value was/will-be encoded in the XML feed.
public void setType(java.lang.String type)
The type indicates how the value was/will-be encoded in the XML feed.
public java.lang.String getMode()
The mode indicates how the value was/will-be encoded in the XML feed.
public void setMode(java.lang.String mode)
The mode indicates how the value was/will-be encoded in the XML feed.
mode
- the content mode, null if none.public java.lang.String getValue()
The return value should be decoded.
public void setValue(java.lang.String value)
The value being set should be decoded.
value
- the content value, null if none.public java.lang.String getSrc()
public void setSrc(java.lang.String src)
src
- The src to set.