com.sun.syndication.feed.rss

Class Content

public class Content extends Object implements Cloneable, Serializable

Bean for item descriptions of RSS feeds.

Author: Alejandro Abdelnur

Field Summary
static StringHTML
static StringTEXT
ObjectBean_objBean
String_type
String_value
Constructor Summary
Content()
Default constructor.
Method Summary
Objectclone()
Creates a deep 'bean' clone of the object.
booleanequals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
StringgetType()
Returns the description type.
StringgetValue()
Returns the description value.
inthashCode()
Returns a hashcode value for the object.
voidsetType(String type)
Sets the description type.
voidsetValue(String value)
Sets the description value.
StringtoString()
Returns the String representation for the object.

Field Detail

HTML

public static final String HTML

TEXT

public static final String TEXT

_objBean

private ObjectBean _objBean

_type

private String _type

_value

private String _value

Constructor Detail

Content

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

Method Detail

clone

public Object clone()
Creates a deep 'bean' clone of the object.

Returns: a clone of the object.

Throws: CloneNotSupportedException thrown if an element of the object cannot be cloned.

equals

public boolean equals(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.

getType

public String getType()
Returns the description type.

Returns: the description type, null if none.

getValue

public String getValue()
Returns the description value.

Returns: the description value, null if none.

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.

setType

public void setType(String type)
Sets the description type.

Parameters: type the description type to set, null if none.

setValue

public void setValue(String value)
Sets the description value.

Parameters: value the description value to set, null if none.

toString

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

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.