public class SyndCategoryImpl extends java.lang.Object implements java.io.Serializable, SyndCategory
| Modifier and Type | Field and Description |
|---|---|
private static CopyFromHelper |
COPY_FROM_HELPER |
private ObjectBean |
objBean |
private static long |
serialVersionUID |
private DCSubject |
subject |
| Constructor and Description |
|---|
SyndCategoryImpl() |
SyndCategoryImpl(DCSubject subject)
For implementations extending SyndContentImpl to be able to use the ObjectBean functionality
with extended interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a deep 'bean' clone of the object.
|
void |
copyFrom(CopyFrom obj)
Copies all the properties of the given bean into this one.
|
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.Class<? extends CopyFrom> |
getInterface()
Returns the interface the copyFrom works on.
|
java.lang.String |
getName()
Returns the category name.
|
(package private) DCSubject |
getSubject()
Package private constructor, used by SyndCategoryListFacade.
|
java.lang.String |
getTaxonomyUri()
Returns the category taxonomy URI.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setName(java.lang.String name)
Sets the category name.
|
void |
setTaxonomyUri(java.lang.String taxonomyUri)
Sets the category taxonomy URI.
|
java.lang.String |
toString()
Returns the String representation for the object.
|
private static final long serialVersionUID
private static final CopyFromHelper COPY_FROM_HELPER
private final ObjectBean objBean
private final DCSubject subject
SyndCategoryImpl(DCSubject subject)
subject - the DC subject to wrap.public SyndCategoryImpl()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface SyndCategoryclone in class java.lang.Objectjava.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - he reference object with which to compare.public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectDCSubject getSubject()
public java.lang.String getName()
getName in interface SyndCategorypublic void setName(java.lang.String name)
setName in interface SyndCategoryname - the category name to set, null if none.public java.lang.String getTaxonomyUri()
getTaxonomyUri in interface SyndCategorypublic void setTaxonomyUri(java.lang.String taxonomyUri)
setTaxonomyUri in interface SyndCategorytaxonomyUri - the category taxonomy URI to set, null if none.public java.lang.Class<? extends CopyFrom> getInterface()
CopyFromThis is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface in interface CopyFrompublic void copyFrom(CopyFrom obj)
CopyFromAny 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.