com.sun.syndication.feed.atom

Class Category

public class Category extends Object implements Cloneable, Serializable

Bean for category elements of Atom feeds.

Author: Dave Johnson (added for Atom 1.0)

Field Summary
String_label
ObjectBean_objBean
String_scheme
String_term
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.
StringgetLabel()
Get label for category.
StringgetScheme()
Get Scheme URI for category.
StringgetTerm()
Return term for category.
inthashCode()
Returns a hashcode value for the object.
voidsetLabel(String label)
Set label for category.
voidsetScheme(String scheme)
Set scheme URI for category.
voidsetTerm(String term)
Set term for category.
StringtoString()
Returns the String representation for the object.

Field Detail

_label

private String _label

_objBean

private ObjectBean _objBean

_scheme

private String _scheme

_term

private String _term

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.

getLabel

public String getLabel()
Get label for category.

Returns: Label for category.

getScheme

public String getScheme()
Get Scheme URI for category.

Returns: Scheme URI for category.

getTerm

public String getTerm()
Return term for category.

Returns: Term for category.

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.

setLabel

public void setLabel(String label)
Set label for category.

Parameters: Label for category.

setScheme

public void setScheme(String scheme)
Set scheme URI for category.

Parameters: Scheme URI for category.

setTerm

public void setTerm(String term)
Set term for category.

Parameters: Term for category.

toString

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

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.