com.sun.syndication.feed.rss

Class Category

public class Category extends Object implements Cloneable, Serializable

Bean for categories of RSS feeds.

Author: Alejandro Abdelnur

Field Summary
String_domain
ObjectBean_objBean
String_value
Constructor Summary
Category()
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.
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.

Field Detail

_domain

private String _domain

_objBean

private ObjectBean _objBean

_value

private String _value

Constructor Detail

Category

public Category()
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.

getDomain

public String getDomain()
Returns the category domain.

Returns: the category domain, null if none.

getValue

public String getValue()
Returns the category value.

Returns: the category 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.

setDomain

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

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

setValue

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

Parameters: value the category 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.