com.sun.syndication.feed.synd

Class SyndCategoryImpl

public class SyndCategoryImpl extends Object implements Serializable, SyndCategory

Bean for categories of SyndFeedImpl feeds and entries.

Author: Alejandro Abdelnur

Field Summary
ObjectBean_objBean
DCSubject_subject
Constructor Summary
SyndCategoryImpl(DCSubject subject)
For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.
SyndCategoryImpl()
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.
StringgetName()
Returns the category name.
DCSubjectgetSubject()
Package private constructor, used by SyndCategoryListFacade.
StringgetTaxonomyUri()
Returns the category taxonomy URI.
inthashCode()
Returns a hashcode value for the object.
voidsetName(String name)
Sets the category name.
voidsetTaxonomyUri(String taxonomyUri)
Sets the category taxonomy URI.
StringtoString()
Returns the String representation for the object.

Field Detail

_objBean

private ObjectBean _objBean

_subject

private DCSubject _subject

Constructor Detail

SyndCategoryImpl

SyndCategoryImpl(DCSubject subject)
For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.

Parameters: subject the DC subject to wrap.

SyndCategoryImpl

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

getName

public String getName()
Returns the category name.

Returns: the category name, null if none.

getSubject

DCSubject getSubject()
Package private constructor, used by SyndCategoryListFacade.

Returns: the DC subject being wrapped.

getTaxonomyUri

public String getTaxonomyUri()
Returns the category taxonomy URI.

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

setName

public void setName(String name)
Sets the category name.

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

setTaxonomyUri

public void setTaxonomyUri(String taxonomyUri)
Sets the category taxonomy URI.

Parameters: taxonomyUri the category taxonomy URI 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.