Top Description Fields Constructors Methods
com.rometools.rome.feed.atom

public Class Content

extends Object
implements Cloneable, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Cloneable
Imports
java.io.Serializable, java.util.Collections, .HashSet, .Set, com.rometools.rome.feed.impl.CloneableBean, .EqualsBean, .ToStringBean, com.rometools.utils.Strings

Bean for content elements of Atom feeds.

Field Summary

Modifier and TypeField and Description
public static final String
BASE64

Atom 0.3 only

public static final String
ESCAPED

Atom 0.3 only

public static final String
private String
private static final Set<String>
private static final long
private String
public static final String
private String
private String
public static final String
public static final String
XML

Atom 0.3 only

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Creates a deep 'bean' clone of the object.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

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

Returns:

the content mode, null if none.
getMode
()

Returns the content mode (Atom 0.3 only).

public String

Returns:

Returns the src.
getSrc
()

Returns the src

public String
getType()

Returns the content type.

public String

Returns:

the content value, null if none.
getValue
()

Returns the content value.

public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public void
setMode(final String
the content mode, null if none.
mode
)

Sets the content mode (Atom 0.3 only).

public void
setSrc(final String
The src to set.
src
)

Set the src

public void
setType(final String type)

Sets the content type.

public void
setValue(final String
the content value, null if none.
value
)

Sets the content value.

public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

BASE64back to summary
public static final String BASE64

Atom 0.3 only

ESCAPEDback to summary
public static final String ESCAPED

Atom 0.3 only

HTMLback to summary
public static final String HTML
Since
Atom 1.0
modeback to summary
private String mode
MODESback to summary
private static final Set<String> MODES
serialVersionUIDback to summary
private static final long serialVersionUID
srcback to summary
private String src
TEXTback to summary
public static final String TEXT
Since
Atom 1.0
typeback to summary
private String type
valueback to summary
private String value
XHTMLback to summary
public static final String XHTML
Since
Atom 1.0
XMLback to summary
public static final String XML

Atom 0.3 only

Constructor Detail

Contentback to summary
public Content()

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

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

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

true if 'this' object is equal to the 'other' object.

Annotations
@Override
getModeback to summary
public String getMode()

Returns the content mode (Atom 0.3 only).

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

Returns:String

the content mode, null if none.

getSrcback to summary
public String getSrc()

Returns the src

Returns:String

Returns the src.

Since
Atom 1.0
getTypeback to summary
public String getType()

Returns the content type.

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

Since
Atom 1.0
getValueback to summary
public String getValue()

Returns the content value.

The return value should be decoded.

Returns:String

the content value, null if none.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.

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

Returns:int

the hashcode of the bean object.

Annotations
@Override
setModeback to summary
public void setMode(final String mode)

Sets the content mode (Atom 0.3 only).

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

Parameters
mode:String

the content mode, null if none.

setSrcback to summary
public void setSrc(final String src)

Set the src

Parameters
src:String

The src to set.

Since
Atom 1.0
setTypeback to summary
public void setType(final String type)

Sets the content type.

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

Since
Atom 1.0
setValueback to summary
public void setValue(final String value)

Sets the content value.

The value being set should be decoded.

Parameters
value:String

the content value, null if none.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override