com.sun.syndication.feed.rss
Class Content

java.lang.Object
  extended by com.sun.syndication.feed.rss.Content
All Implemented Interfaces:
Serializable, Cloneable

public class Content
extends Object
implements Cloneable, Serializable

Bean for item descriptions of RSS feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Field Summary
static String HTML
           
static String TEXT
           
 
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 getType()
          Returns the description type.
 String getValue()
          Returns the description value.
 int hashCode()
          Returns a hashcode value for the object.
 void setType(String type)
          Sets the description type.
 void setValue(String value)
          Sets the description value.
 String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HTML

public static final String HTML
See Also:
Constant Field Values

TEXT

public static final String TEXT
See Also:
Constant Field Values
Constructor Detail

Content

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

Method Detail

setType

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

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

getType

public String getType()
Returns the description type.

Returns:
the description type, null if none.

setValue

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

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

getValue

public String getValue()
Returns the description value.

Returns:
the description value, null if none.

clone

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

Overrides:
clone in class 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.

Overrides:
equals in class Object
Parameters:
other - he reference object with which to compare.
Returns:
true if 'this' object is equal to the 'other' object.

hashCode

public int hashCode()
Returns a hashcode value for the object.

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

Overrides:
hashCode in class Object
Returns:
the hashcode of the bean object.

toString

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

Overrides:
toString in class Object
Returns:
String representation for the object.


Copyright © 2004-2013 ROME Project. All Rights Reserved.