public class DCSubjectImpl extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, DCSubject
Modifier and Type | Field and Description |
---|---|
private static CopyFromHelper |
COPY_FROM_HELPER |
private ObjectBean |
objBean |
private static long |
serialVersionUID |
private java.lang.String |
taxonomyUri |
private java.lang.String |
value |
Constructor and Description |
---|
DCSubjectImpl() |
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<DCSubject> |
getInterface()
Returns the interface the copyFrom works on.
|
java.lang.String |
getTaxonomyUri()
Returns the DublinCore subject taxonomy URI.
|
java.lang.String |
getValue()
Returns the DublinCore subject value.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setTaxonomyUri(java.lang.String taxonomyUri)
Sets the DublinCore subject taxonomy URI.
|
void |
setValue(java.lang.String value)
Sets the DublinCore subject value.
|
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 java.lang.String taxonomyUri
private java.lang.String value
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- 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.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTaxonomyUri()
getTaxonomyUri
in interface DCSubject
public void setTaxonomyUri(java.lang.String taxonomyUri)
setTaxonomyUri
in interface DCSubject
taxonomyUri
- the DublinCore subject taxonomy URI to set, null if none.public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.Class<DCSubject> getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom
public void copyFrom(CopyFrom obj)
CopyFrom
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.