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