Package com.rometools.rome.feed.module
Class DCSubjectImpl
- java.lang.Object
-
- com.rometools.rome.feed.module.DCSubjectImpl
-
- All Implemented Interfaces:
CopyFrom,DCSubject,Serializable,Cloneable
public class DCSubjectImpl extends Object implements Cloneable, Serializable, DCSubject
Subject of the Dublin Core ModuleImpl, default implementation.- See Also:
- Dublin Core module., Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DCSubjectImpl()
-
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<DCSubject>getInterface()Returns the interface the copyFrom works on.StringgetTaxonomyUri()Returns the DublinCore subject taxonomy URI.StringgetValue()Returns the DublinCore subject value.inthashCode()Returns a hashcode value for the object.voidsetTaxonomyUri(String taxonomyUri)Sets the DublinCore subject taxonomy URI.voidsetValue(String value)Sets the DublinCore subject value.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 interfaceDCSubject- 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.
-
getTaxonomyUri
public String getTaxonomyUri()
Returns the DublinCore subject taxonomy URI.- Specified by:
getTaxonomyUriin interfaceDCSubject- Returns:
- the DublinCore subject taxonomy URI, null if none.
-
setTaxonomyUri
public void setTaxonomyUri(String taxonomyUri)
Sets the DublinCore subject taxonomy URI.- Specified by:
setTaxonomyUriin interfaceDCSubject- Parameters:
taxonomyUri- the DublinCore subject taxonomy URI to set, null if none.
-
getValue
public String getValue()
Returns the DublinCore subject value.
-
setValue
public void setValue(String value)
Sets the DublinCore subject value.
-
getInterface
public Class<DCSubject> 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.
-
-