com.sun.syndication.feed.rss
Class Category

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

public class Category
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Bean for categories of RSS feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
Category()
          Default constructor.
 
Method Summary
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 java.lang.String getDomain()
          Returns the category domain.
 java.lang.String getValue()
          Returns the category value.
 int hashCode()
          Returns a hashcode value for the object.
 void setDomain(java.lang.String domain)
          Sets the category domain.
 void setValue(java.lang.String value)
          Sets the category value.
 java.lang.String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category

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

Method Detail

clone

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

Overrides:
clone in class java.lang.Object
Returns:
a clone of the object.
Throws:
java.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

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

Overrides:
equals in class java.lang.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 java.lang.Object
Returns:
the hashcode of the bean object.

toString

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

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

getDomain

public java.lang.String getDomain()
Returns the category domain.

Returns:
the category domain, null if none.

setDomain

public void setDomain(java.lang.String domain)
Sets the category domain.

Parameters:
domain - the category domain to set, null if none.

getValue

public java.lang.String getValue()
Returns the category value.

Returns:
the category value, null if none.

setValue

public void setValue(java.lang.String value)
Sets the category value.

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


Copyright © 2004-2009 Sun Microsystems. All Rights Reserved.