com.sun.syndication.feed.module
Class DCSubject

java.lang.Object
  extended bycom.sun.syndication.common.ObjectBean
      extended bycom.sun.syndication.feed.module.DCSubject
All Implemented Interfaces:
java.lang.Cloneable, CopyFrom, DCSubjectI, java.io.Serializable, ToString

public class DCSubject
extends ObjectBean
implements DCSubjectI

Subject of the Dublin Core Module, default implementation.

Author:
Alejandro Abdelnur
See Also:
Dublin Core module., Serialized Form

Constructor Summary
DCSubject()
          Default constructor.
 
Method Summary
 void copyFrom(java.lang.Object obj)
          Copies all the properties of the given bean into this one.
 java.lang.Class 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.
 void setTaxonomyUri(java.lang.String taxonomyUri)
          Sets the DublinCore subject taxonomy URI.
 void setValue(java.lang.String value)
          Sets the DublinCore subject value.
 
Methods inherited from class com.sun.syndication.common.ObjectBean
clone, equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.module.DCSubjectI
clone
 
Methods inherited from interface com.sun.syndication.common.ToString
toString
 

Constructor Detail

DCSubject

public DCSubject()
Default constructor. All properties are set to null.

Method Detail

getTaxonomyUri

public java.lang.String getTaxonomyUri()
Returns the DublinCore subject taxonomy URI.

Specified by:
getTaxonomyUri in interface DCSubjectI
Returns:
the DublinCore subject taxonomy URI, null if none.

setTaxonomyUri

public void setTaxonomyUri(java.lang.String taxonomyUri)
Sets the DublinCore subject taxonomy URI.

Specified by:
setTaxonomyUri in interface DCSubjectI
Parameters:
taxonomyUri - the DublinCore subject taxonomy URI to set, null if none.

getValue

public java.lang.String getValue()
Returns the DublinCore subject value.

Specified by:
getValue in interface DCSubjectI
Returns:
the DublinCore subject value, null if none.

setValue

public void setValue(java.lang.String value)
Sets the DublinCore subject value.

Specified by:
setValue in interface DCSubjectI
Parameters:
value - the DublinCore subject value to set, null if none.

getInterface

public java.lang.Class getInterface()
Description copied from interface: CopyFrom
Returns the interface the copyFrom works on.

This is useful when dealing with properties that may have multiple implementations. For example, ModuleI.

Specified by:
getInterface in interface CopyFrom
Returns:
the interface the copyFrom works on.

copyFrom

public void copyFrom(java.lang.Object obj)
Description copied from interface: CopyFrom
Copies 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 SyndFeedI bean implementation to a Hibernate ready implementation.

Specified by:
copyFrom in interface CopyFrom
Parameters:
obj - the instance to copy properties from.


Copyright © 2004 Sun Microsystems. All Rights Reserved.