Package com.rometools.rome.feed.rss
Class Category
- java.lang.Object
-
- com.rometools.rome.feed.rss.Category
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Category extends Object implements Cloneable, Serializable
Bean for categories of RSS feeds.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Category()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.StringgetDomain()Returns the category domain.StringgetValue()Returns the category value.inthashCode()Returns a hashcode value for the object.voidsetDomain(String domain)Sets the category domain.voidsetValue(String value)Sets the category value.StringtoString()Returns the String representation for the object.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Overrides:
clonein classObject- 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.
-
hashCode
public int hashCode()
Returns a hashcode value for the object.It follows the contract defined by the Object hashCode() method.
-
toString
public String toString()
Returns the String representation for the object.
-
getDomain
public String getDomain()
Returns the category domain.- Returns:
- the category domain, null if none.
-
setDomain
public void setDomain(String domain)
Sets the category domain.- Parameters:
domain- the category domain to set, null if none.
-
getValue
public String getValue()
Returns the category value.- Returns:
- the category value, null if none.
-
setValue
public void setValue(String value)
Sets the category value.- Parameters:
value- the category value to set, null if none.
-
-