Package com.rometools.rome.feed.module
Class DCModuleImpl
- java.lang.Object
-
- com.rometools.rome.feed.module.ModuleImpl
-
- com.rometools.rome.feed.module.DCModuleImpl
-
- All Implemented Interfaces:
CopyFrom,DCModule,Module,Serializable,Cloneable
public class DCModuleImpl extends ModuleImpl implements DCModule
Dublin Core ModuleImpl, default implementation.- See Also:
- Dublin Core module., Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>CONVENIENCE_PROPERTIESUnmodifiable Set containing the convenience properties of this class.
-
Constructor Summary
Constructors Constructor Description DCModuleImpl()
-
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.StringgetContributor()Gets the DublinCore module contributor.List<String>getContributors()Returns the DublinCore module contributor.StringgetCoverage()Gets the DublinCore module coverage.List<String>getCoverages()Returns the DublinCore module coverage.StringgetCreator()Gets the DublinCore module title.List<String>getCreators()Returns the DublinCore module creator.DategetDate()Gets the DublinCore module date.List<Date>getDates()Returns the DublinCore module date.StringgetDescription()Gets the DublinCore module description.List<String>getDescriptions()Returns the DublinCore module description.StringgetFormat()Gets the DublinCore module format.List<String>getFormats()Returns the DublinCore module format.StringgetIdentifier()Gets the DublinCore module identifier.List<String>getIdentifiers()Returns the DublinCore module identifier.Class<DCModule>getInterface()Returns the interface the copyFrom works on.StringgetLanguage()Gets the DublinCore module language.List<String>getLanguages()Returns the DublinCore module language.StringgetPublisher()Gets the DublinCore module title.List<String>getPublishers()Returns the DublinCore module publisher.StringgetRelation()Gets the DublinCore module relation.List<String>getRelations()Returns the DublinCore module relation.StringgetRights()Gets the DublinCore module rights.List<String>getRightsList()Returns the DublinCore module rights.StringgetSource()Gets the DublinCore module source.List<String>getSources()Returns the DublinCore module source.DCSubjectgetSubject()Gets the DublinCore module subject.List<DCSubject>getSubjects()Returns the DublinCore module subjects.StringgetTitle()Gets the DublinCore module title.List<String>getTitles()Returns the DublinCore module titles.StringgetType()Gets the DublinCore module type.List<String>getTypes()Returns the DublinCore module type.inthashCode()Returns a hashcode value for the object.voidsetContributor(String contributor)Sets the DublinCore module contributor.voidsetContributors(List<String> contributors)Sets the DublinCore module contributors.voidsetCoverage(String coverage)Sets the DublinCore module coverage.voidsetCoverages(List<String> coverages)Sets the DublinCore module coverages.voidsetCreator(String creator)Sets the DublinCore module creator.voidsetCreators(List<String> creators)Sets the DublinCore module creators.voidsetDate(Date date)Sets the DublinCore module date.voidsetDates(List<Date> dates)Sets the DublinCore module dates.voidsetDescription(String description)Sets the DublinCore module description.voidsetDescriptions(List<String> descriptions)Sets the DublinCore module descriptions.voidsetFormat(String format)Sets the DublinCore module format.voidsetFormats(List<String> formats)Sets the DublinCore module formats.voidsetIdentifier(String identifier)Sets the DublinCore module identifier.voidsetIdentifiers(List<String> identifiers)Sets the DublinCore module identifiers.voidsetLanguage(String language)Sets the DublinCore module language.voidsetLanguages(List<String> languages)Sets the DublinCore module languages.voidsetPublisher(String publisher)Sets the DublinCore module publisher.voidsetPublishers(List<String> publishers)Sets the DublinCore module publishers.voidsetRelation(String relation)Sets the DublinCore module relation.voidsetRelations(List<String> relations)Sets the DublinCore module relations.voidsetRights(String rights)Sets the DublinCore module rights.voidsetRightsList(List<String> rights)Sets the DublinCore module rights.voidsetSource(String source)Sets the DublinCore module source.voidsetSources(List<String> sources)Sets the DublinCore module sources.voidsetSubject(DCSubject subject)Sets the DCSubject element.voidsetSubjects(List<DCSubject> subjects)Sets the DublinCore module subjects.voidsetTitle(String title)Sets the DublinCore module title.voidsetTitles(List<String> titles)Sets the DublinCore module titles.voidsetType(String type)Sets the DublinCore module type.voidsetTypes(List<String> types)Sets the DublinCore module types.StringtoString()Returns the String representation for the object.-
Methods inherited from class com.rometools.rome.feed.module.ModuleImpl
getUri
-
-
-
-
Field Detail
-
CONVENIENCE_PROPERTIES
public static final Set<String> CONVENIENCE_PROPERTIES
Unmodifiable Set containing the convenience properties of this class.Convenience properties are mapped to Modules, for cloning the convenience properties can be ignored as the will be copied as part of the module cloning.
-
-
Method Detail
-
getTitle
public String getTitle()
Gets the DublinCore module title. Convenience method that can be used to obtain the first item, null if none.
-
setTitle
public void setTitle(String title)
Sets the DublinCore module title. Convenience method that can be used when there is only one title to set.
-
getCreators
public List<String> getCreators()
Returns the DublinCore module creator.- Specified by:
getCreatorsin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module creator, an empty list if none.
-
setCreators
public void setCreators(List<String> creators)
Sets the DublinCore module creators.- Specified by:
setCreatorsin interfaceDCModule- Parameters:
creators- the list of String representing the DublinCore module creators to set, an empty list or null if none.
-
getCreator
public String getCreator()
Gets the DublinCore module title. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getCreatorin interfaceDCModule- Returns:
- the first DublinCore module title, null if none.
-
setCreator
public void setCreator(String creator)
Sets the DublinCore module creator. Convenience method that can be used when there is only one creator to set.- Specified by:
setCreatorin interfaceDCModule- Parameters:
creator- the DublinCore module creator to set, null if none.
-
getSubjects
public List<DCSubject> getSubjects()
Returns the DublinCore module subjects.- Specified by:
getSubjectsin interfaceDCModule- Returns:
- a list of DCSubject elements with the DublinCore module subjects, an empty list if none.
-
setSubjects
public void setSubjects(List<DCSubject> subjects)
Sets the DublinCore module subjects.- Specified by:
setSubjectsin interfaceDCModule- Parameters:
subjects- the list of DCSubject elements with the DublinCore module subjects to set, an empty list or null if none.
-
getSubject
public DCSubject getSubject()
Gets the DublinCore module subject. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getSubjectin interfaceDCModule- Returns:
- the first DublinCore module subject, null if none.
-
setSubject
public void setSubject(DCSubject subject)
Sets the DCSubject element. Convenience method that can be used when there is only one subject to set.- Specified by:
setSubjectin interfaceDCModule- Parameters:
subject- the DublinCore module subject to set, null if none.
-
getDescriptions
public List<String> getDescriptions()
Returns the DublinCore module description.- Specified by:
getDescriptionsin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module description, an empty list if none.
-
setDescriptions
public void setDescriptions(List<String> descriptions)
Sets the DublinCore module descriptions.- Specified by:
setDescriptionsin interfaceDCModule- Parameters:
descriptions- the list of String representing the DublinCore module descriptions to set, an empty list or null if none.
-
getDescription
public String getDescription()
Gets the DublinCore module description. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getDescriptionin interfaceDCModule- Returns:
- the first DublinCore module description, null if none.
-
setDescription
public void setDescription(String description)
Sets the DublinCore module description. Convenience method that can be used when there is only one description to set.- Specified by:
setDescriptionin interfaceDCModule- Parameters:
description- the DublinCore module description to set, null if none.
-
getPublishers
public List<String> getPublishers()
Returns the DublinCore module publisher.- Specified by:
getPublishersin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module publisher, an empty list if none.
-
setPublishers
public void setPublishers(List<String> publishers)
Sets the DublinCore module publishers.- Specified by:
setPublishersin interfaceDCModule- Parameters:
publishers- the list of String representing the DublinCore module publishers to set, an empty list or null if none.
-
getPublisher
public String getPublisher()
Gets the DublinCore module title. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getPublisherin interfaceDCModule- Returns:
- the first DublinCore module title, null if none.
-
setPublisher
public void setPublisher(String publisher)
Sets the DublinCore module publisher. Convenience method that can be used when there is only one publisher to set.- Specified by:
setPublisherin interfaceDCModule- Parameters:
publisher- the DublinCore module publisher to set, null if none.
-
getContributors
public List<String> getContributors()
Returns the DublinCore module contributor.- Specified by:
getContributorsin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module contributor, an empty list if none.
-
setContributors
public void setContributors(List<String> contributors)
Sets the DublinCore module contributors.- Specified by:
setContributorsin interfaceDCModule- Parameters:
contributors- the list of String representing the DublinCore module contributors to set, an empty list or null if none.
-
getContributor
public String getContributor()
Gets the DublinCore module contributor. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getContributorin interfaceDCModule- Returns:
- the first DublinCore module contributor, null if none.
-
setContributor
public void setContributor(String contributor)
Sets the DublinCore module contributor. Convenience method that can be used when there is only one contributor to set.- Specified by:
setContributorin interfaceDCModule- Parameters:
contributor- the DublinCore module contributor to set, null if none.
-
getDate
public Date getDate()
Gets the DublinCore module date. Convenience method that can be used to obtain the first item, null if none.
-
setDate
public void setDate(Date date)
Sets the DublinCore module date. Convenience method that can be used when there is only one date to set.
-
getType
public String getType()
Gets the DublinCore module type. Convenience method that can be used to obtain the first item, null if none.
-
setType
public void setType(String type)
Sets the DublinCore module type. Convenience method that can be used when there is only one type to set.
-
getFormats
public List<String> getFormats()
Returns the DublinCore module format.- Specified by:
getFormatsin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module format, an empty list if none.
-
setFormats
public void setFormats(List<String> formats)
Sets the DublinCore module formats.- Specified by:
setFormatsin interfaceDCModule- Parameters:
formats- the list of String representing the DublinCore module formats to set, an empty list or null if none.
-
getFormat
public String getFormat()
Gets the DublinCore module format. Convenience method that can be used to obtain the first item, null if none.
-
setFormat
public void setFormat(String format)
Sets the DublinCore module format. Convenience method that can be used when there is only one format to set.
-
getIdentifiers
public List<String> getIdentifiers()
Returns the DublinCore module identifier.- Specified by:
getIdentifiersin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module identifier, an empty list if none.
-
setIdentifiers
public void setIdentifiers(List<String> identifiers)
Sets the DublinCore module identifiers.- Specified by:
setIdentifiersin interfaceDCModule- Parameters:
identifiers- the list of String representing the DublinCore module identifiers to set, an empty list or null if none.
-
getIdentifier
public String getIdentifier()
Gets the DublinCore module identifier. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getIdentifierin interfaceDCModule- Returns:
- the first DublinCore module identifier, null if none.
-
setIdentifier
public void setIdentifier(String identifier)
Sets the DublinCore module identifier. Convenience method that can be used when there is only one identifier to set.- Specified by:
setIdentifierin interfaceDCModule- Parameters:
identifier- the DublinCore module identifier to set, null if none.
-
getSources
public List<String> getSources()
Returns the DublinCore module source.- Specified by:
getSourcesin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module source, an empty list if none.
-
setSources
public void setSources(List<String> sources)
Sets the DublinCore module sources.- Specified by:
setSourcesin interfaceDCModule- Parameters:
sources- the list of String representing the DublinCore module sources to set, an empty list or null if none.
-
getSource
public String getSource()
Gets the DublinCore module source. Convenience method that can be used to obtain the first item, null if none.
-
setSource
public void setSource(String source)
Sets the DublinCore module source. Convenience method that can be used when there is only one source to set.
-
getLanguages
public List<String> getLanguages()
Returns the DublinCore module language.- Specified by:
getLanguagesin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module language, an empty list if none.
-
setLanguages
public void setLanguages(List<String> languages)
Sets the DublinCore module languages.- Specified by:
setLanguagesin interfaceDCModule- Parameters:
languages- the list of String representing the DublinCore module languages to set, an empty list or null if none.
-
getLanguage
public String getLanguage()
Gets the DublinCore module language. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getLanguagein interfaceDCModule- Returns:
- the first DublinCore module langauge, null if none.
-
setLanguage
public void setLanguage(String language)
Sets the DublinCore module language. Convenience method that can be used when there is only one language to set.- Specified by:
setLanguagein interfaceDCModule- Parameters:
language- the DublinCore module language to set, null if none.
-
getRelations
public List<String> getRelations()
Returns the DublinCore module relation.- Specified by:
getRelationsin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module relation, an empty list if none.
-
setRelations
public void setRelations(List<String> relations)
Sets the DublinCore module relations.- Specified by:
setRelationsin interfaceDCModule- Parameters:
relations- the list of String representing the DublinCore module relations to set, an empty list or null if none.
-
getRelation
public String getRelation()
Gets the DublinCore module relation. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getRelationin interfaceDCModule- Returns:
- the first DublinCore module relation, null if none.
-
setRelation
public void setRelation(String relation)
Sets the DublinCore module relation. Convenience method that can be used when there is only one relation to set.- Specified by:
setRelationin interfaceDCModule- Parameters:
relation- the DublinCore module relation to set, null if none.
-
getCoverages
public List<String> getCoverages()
Returns the DublinCore module coverage.- Specified by:
getCoveragesin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module coverage, an empty list if none.
-
setCoverages
public void setCoverages(List<String> coverages)
Sets the DublinCore module coverages.- Specified by:
setCoveragesin interfaceDCModule- Parameters:
coverages- the list of String representing the DublinCore module coverages to set, an empty list or null if none.
-
getCoverage
public String getCoverage()
Gets the DublinCore module coverage. Convenience method that can be used to obtain the first item, null if none.- Specified by:
getCoveragein interfaceDCModule- Returns:
- the first DublinCore module coverage, null if none.
-
setCoverage
public void setCoverage(String coverage)
Sets the DublinCore module coverage. Convenience method that can be used when there is only one coverage to set.- Specified by:
setCoveragein interfaceDCModule- Parameters:
coverage- the DublinCore module coverage to set, null if none.
-
getRightsList
public List<String> getRightsList()
Returns the DublinCore module rights.- Specified by:
getRightsListin interfaceDCModule- Returns:
- a list of Strings representing the DublinCore module rights, an empty list if none.
-
setRightsList
public void setRightsList(List<String> rights)
Sets the DublinCore module rights.- Specified by:
setRightsListin interfaceDCModule- Parameters:
rights- the list of String representing the DublinCore module rights to set, an empty list or null if none.
-
getRights
public String getRights()
Gets the DublinCore module rights. Convenience method that can be used to obtain the first item, null if none.
-
setRights
public void setRights(String rights)
Sets the DublinCore module rights. Convenience method that can be used when there is only one rights to set.
-
clone
public final Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Specified by:
clonein interfaceModule- Overrides:
clonein classModuleImpl- Returns:
- a clone of the object.
- Throws:
CloneNotSupportedException- thrown if an element of the object cannot be cloned.
-
equals
public final boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.- Overrides:
equalsin classModuleImpl- Parameters:
other- he reference object with which to compare.- Returns:
- true if 'this' object is equal to the 'other' object.
-
hashCode
public final int hashCode()
Returns a hashcode value for the object.It follows the contract defined by the Object hashCode() method.
- Overrides:
hashCodein classModuleImpl- Returns:
- the hashcode of the bean object.
-
toString
public final String toString()
Returns the String representation for the object.- Overrides:
toStringin classModuleImpl- Returns:
- String representation for the object.
-
getInterface
public final Class<DCModule> 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 final 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.
-
-