com.sun.syndication.feed.module
Class DCModuleImpl

java.lang.Object
  extended bycom.sun.syndication.feed.module.ModuleImpl
      extended bycom.sun.syndication.feed.module.DCModuleImpl
All Implemented Interfaces:
java.lang.Cloneable, CopyFrom, DCModule, Module, java.io.Serializable

public class DCModuleImpl
extends ModuleImpl
implements DCModule

Dublin Core ModuleImpl, default implementation.

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

Field Summary
 
Fields inherited from interface com.sun.syndication.feed.module.DCModule
URI
 
Constructor Summary
DCModuleImpl()
          Default constructor.
 
Method Summary
 void copyFrom(java.lang.Object obj)
          Copies all the properties of the given bean into this one.
 java.util.List getContributors()
          Returns the DublinCore module contributors.
 java.lang.String getCoverage()
          Returns the DublinCore module coverage.
 java.lang.String getCreator()
          Returns the DublinCore module creator.
 java.util.Date getDate()
          Returns the DublinCore module date.
 java.lang.String getDescription()
          Returns the DublinCore module description.
 java.lang.String getFormat()
          Returns the DublinCore module format.
 java.lang.String getIdentifier()
          Returns the DublinCore module identifier.
 java.lang.Class getInterface()
          Returns the interface the copyFrom works on.
 java.lang.String getLanguage()
          Returns the DublinCore module language.
 java.lang.String getPublisher()
          Returns the DublinCore module publisher.
 java.lang.String getRelation()
          Returns the DublinCore module relation.
 java.lang.String getRights()
          Returns the DublinCore module rights.
 java.lang.String getSource()
          Returns the DublinCore module source.
 java.util.List getSubjects()
          Returns the DublinCore module subjects.
 java.lang.String getTitle()
          Returns the DublinCore module title.
 java.lang.String getType()
          Returns the DublinCore module type.
 void setContributors(java.util.List contributors)
          Sets the DublinCore module contributors.
 void setCoverage(java.lang.String coverage)
          Sets the DublinCore module coverage.
 void setCreator(java.lang.String creator)
          Sets the DublinCore module creator.
 void setDate(java.util.Date date)
          Sets the DublinCore module date.
 void setDescription(java.lang.String description)
          Sets the DublinCore module description.
 void setFormat(java.lang.String format)
          Sets the DublinCore module format.
 void setIdentifier(java.lang.String identifier)
          Sets the DublinCore module identifier.
 void setLanguage(java.lang.String language)
          Sets the DublinCore module language.
 void setPublisher(java.lang.String publisher)
          Sets the DublinCore module publisher.
 void setRelation(java.lang.String relation)
          Sets the DublinCore module relation.
 void setRights(java.lang.String rights)
          Sets the DublinCore module rights.
 void setSource(java.lang.String source)
          Sets the DublinCore module source.
 void setSubjects(java.util.List subjects)
          Sets the DublinCore module subjects.
 void setTitle(java.lang.String title)
          Sets the DublinCore module title.
 void setType(java.lang.String type)
          Sets the DublinCore module type.
 
Methods inherited from class com.sun.syndication.feed.module.ModuleImpl
clone, equals, getUri, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.module.Module
clone, getUri
 

Constructor Detail

DCModuleImpl

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

Method Detail

getTitle

public java.lang.String getTitle()
Returns the DublinCore module title.

Specified by:
getTitle in interface DCModule
Returns:
the DublinCore module title, null if none.

setTitle

public void setTitle(java.lang.String title)
Sets the DublinCore module title.

Specified by:
setTitle in interface DCModule
Parameters:
title - the DublinCore module title to set, null if none.

getCreator

public java.lang.String getCreator()
Returns the DublinCore module creator.

Specified by:
getCreator in interface DCModule
Returns:
the DublinCore module creator, null if none.

setCreator

public void setCreator(java.lang.String creator)
Sets the DublinCore module creator.

Specified by:
setCreator in interface DCModule
Parameters:
creator - the DublinCore module creator to set, null if none.

getSubjects

public java.util.List getSubjects()
Returns the DublinCore module subjects.

Specified by:
getSubjects in interface DCModule
Returns:
a list of DCSubject elements with the DublinCore module subjects, an empty list if none.

setSubjects

public void setSubjects(java.util.List subjects)
Sets the DublinCore module subjects.

Specified by:
setSubjects in interface DCModule
Parameters:
subjects - the list of DCSubject elements with the DublinCore module subjects to set, an empty list or null if none.

getDescription

public java.lang.String getDescription()
Returns the DublinCore module description.

Specified by:
getDescription in interface DCModule
Returns:
the DublinCore module description, null if none.

setDescription

public void setDescription(java.lang.String description)
Sets the DublinCore module description.

Specified by:
setDescription in interface DCModule
Parameters:
description - the DublinCore module description to set, null if none.

getPublisher

public java.lang.String getPublisher()
Returns the DublinCore module publisher.

Specified by:
getPublisher in interface DCModule
Returns:
the DublinCore module publisher, null if none.

setPublisher

public void setPublisher(java.lang.String publisher)
Sets the DublinCore module publisher.

Specified by:
setPublisher in interface DCModule
Parameters:
publisher - the DublinCore module publisher to set, null if none.

getContributors

public java.util.List getContributors()
Returns the DublinCore module contributors.

Specified by:
getContributors in interface DCModule
Returns:
a list of String elements with the DublinCore module contributors, an empty list if none.

setContributors

public void setContributors(java.util.List contributors)
Sets the DublinCore module contributors.

Specified by:
setContributors in interface DCModule
Parameters:
contributors - the list of String elements with the DublinCore module contributors to set, an empty list or null if none.

getDate

public java.util.Date getDate()
Returns the DublinCore module date.

Specified by:
getDate in interface DCModule
Returns:
the DublinCore module date, null if none.

setDate

public void setDate(java.util.Date date)
Sets the DublinCore module date.

Specified by:
setDate in interface DCModule
Parameters:
date - the DublinCore module date to set, null if none.

getType

public java.lang.String getType()
Returns the DublinCore module type.

Specified by:
getType in interface DCModule
Returns:
the DublinCore module type, null if none.

setType

public void setType(java.lang.String type)
Sets the DublinCore module type.

Specified by:
setType in interface DCModule
Parameters:
type - the DublinCore module type to set, null if none.

getFormat

public java.lang.String getFormat()
Returns the DublinCore module format.

Specified by:
getFormat in interface DCModule
Returns:
the DublinCore module format, null if none.

setFormat

public void setFormat(java.lang.String format)
Sets the DublinCore module format.

Specified by:
setFormat in interface DCModule
Parameters:
format - the DublinCore module format to set, null if none.

getIdentifier

public java.lang.String getIdentifier()
Returns the DublinCore module identifier.

Specified by:
getIdentifier in interface DCModule
Returns:
the DublinCore module identifier, null if none.

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the DublinCore module identifier.

Specified by:
setIdentifier in interface DCModule
Parameters:
identifier - the DublinCore module identifier to set, null if none.

getSource

public java.lang.String getSource()
Returns the DublinCore module source.

Specified by:
getSource in interface DCModule
Returns:
the DublinCore module source, null if none.

setSource

public void setSource(java.lang.String source)
Sets the DublinCore module source.

Specified by:
setSource in interface DCModule
Parameters:
source - the DublinCore module source to set, null if none.

getLanguage

public java.lang.String getLanguage()
Returns the DublinCore module language.

Specified by:
getLanguage in interface DCModule
Returns:
the DublinCore module language, null if none.

setLanguage

public void setLanguage(java.lang.String language)
Sets the DublinCore module language.

Specified by:
setLanguage in interface DCModule
Parameters:
language - the DublinCore module language to set, null if none.

getRelation

public java.lang.String getRelation()
Returns the DublinCore module relation.

Specified by:
getRelation in interface DCModule
Returns:
the DublinCore module relation, null if none.

setRelation

public void setRelation(java.lang.String relation)
Sets the DublinCore module relation.

Specified by:
setRelation in interface DCModule
Parameters:
relation - the DublinCore module relation to set, null if none.

getCoverage

public java.lang.String getCoverage()
Returns the DublinCore module coverage.

Specified by:
getCoverage in interface DCModule
Returns:
the DublinCore module coverage, null if none.

setCoverage

public void setCoverage(java.lang.String coverage)
Sets the DublinCore module coverage.

Specified by:
setCoverage in interface DCModule
Parameters:
coverage - the DublinCore module coverage to set, null if none.

getRights

public java.lang.String getRights()
Returns the DublinCore module rights.

Specified by:
getRights in interface DCModule
Returns:
the DublinCore module rights, null if none.

setRights

public void setRights(java.lang.String rights)
Sets the DublinCore module rights.

Specified by:
setRights in interface DCModule
Parameters:
rights - the DublinCore module rights 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, Module.

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 SyndFeed bean implementation to a Hibernate ready implementation.

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


Copyright © 2004-2005 Sun Microsystems. All Rights Reserved.