Package com.rometools.rome.feed.synd
Class SyndCategoryImpl
- java.lang.Object
-
- com.rometools.rome.feed.synd.SyndCategoryImpl
-
- All Implemented Interfaces:
CopyFrom,SyndCategory,Serializable,Cloneable
public class SyndCategoryImpl extends Object implements Serializable, SyndCategory
Bean for categories of SyndFeedImpl feeds and entries.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyndCategoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.voidcopyFrom(CopyFrom obj)Copies all the properties of the given bean into this one.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.Class<? extends CopyFrom>getInterface()Returns the interface the copyFrom works on.StringgetName()Returns the category name.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.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Specified by:
clonein interfaceSyndCategory- 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.
-
getName
public String getName()
Returns the category name.- Specified by:
getNamein interfaceSyndCategory- Returns:
- the category name, null if none.
-
setName
public void setName(String name)
Sets the category name.- Specified by:
setNamein interfaceSyndCategory- Parameters:
name- the category name to set, null if none.
-
getTaxonomyUri
public String getTaxonomyUri()
Returns the category taxonomy URI.- Specified by:
getTaxonomyUriin interfaceSyndCategory- Returns:
- the category taxonomy URI, null if none.
-
setTaxonomyUri
public void setTaxonomyUri(String taxonomyUri)
Sets the category taxonomy URI.- Specified by:
setTaxonomyUriin interfaceSyndCategory- Parameters:
taxonomyUri- the category taxonomy URI to set, null if none.
-
getInterface
public Class<? extends CopyFrom> getInterface()
Description copied from interface:CopyFromReturns the interface the copyFrom works on.This is useful when dealing with properties that may have multiple implementations. For example, Module.
- Specified by:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
copyFrom
public void copyFrom(CopyFrom obj)
Description copied from interface:CopyFromCopies all the properties of the given bean into this one.Any existing properties in this bean are lost.
This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
-
-