org.apache.jetspeed.om.impl
Class DublinCoreImpl
java.lang.Object
org.apache.jetspeed.om.impl.DublinCoreImpl
- All Implemented Interfaces:
- org.apache.jetspeed.om.common.DublinCore, Serializable
- public class DublinCoreImpl
- extends Object
- implements org.apache.jetspeed.om.common.DublinCore
DublinCoreImpl
Implementation that allows retrieving information according to the
Dublin Core specification
(http://www.dublincore.org)
- Version:
- $Id: DublinCoreImpl.java 186730 2004-06-05 20:11:59Z dlestrat $
- Author:
- Jeremy Ford
- See Also:
- Serialized Form
|
Constructor Summary |
DublinCoreImpl(org.apache.jetspeed.om.common.GenericMetadata md)
|
|
Method Summary |
void |
addContributor(Locale locale,
String contributor)
|
void |
addCoverage(Locale locale,
String coverage)
|
void |
addCreator(Locale locale,
String creator)
|
void |
addDescription(Locale locale,
String description)
|
void |
addFormat(Locale locale,
String format)
|
void |
addIdentifier(Locale locale,
String identifier)
|
void |
addLanguage(Locale locale,
String language)
|
private void |
addLocalizedFieldToCollection(Collection fields,
Locale locale,
String value)
|
void |
addPublisher(Locale locale,
String publisher)
|
void |
addRelation(Locale locale,
String relation)
|
void |
addRight(Locale locale,
String right)
|
void |
addSource(Locale locale,
String source)
|
void |
addSubject(Locale locale,
String subject)
|
void |
addTitle(Locale locale,
String title)
|
void |
addType(Locale locale,
String type)
|
Collection |
getContributors()
|
Collection |
getCoverages()
|
Collection |
getCreators()
|
Collection |
getDescriptions()
|
Collection |
getFormats()
|
Collection |
getIdentifiers()
|
Collection |
getLanguages()
|
Collection |
getPublishers()
|
Collection |
getRelations()
|
Collection |
getRights()
|
Collection |
getSources()
|
Collection |
getSubjects()
|
Collection |
getTitles()
|
Collection |
getTypes()
|
void |
setContributors(Collection contributors)
|
void |
setCoverages(Collection coverages)
|
void |
setCreators(Collection creators)
|
void |
setDescriptions(Collection descriptions)
|
void |
setFormats(Collection formats)
|
void |
setIdentifiers(Collection identifiers)
|
void |
setLanguages(Collection languages)
|
void |
setPublishers(Collection publishers)
|
void |
setRelations(Collection relations)
|
void |
setRights(Collection rights)
|
void |
setSources(Collection sources)
|
void |
setSubjects(Collection subjects)
|
void |
setTitles(Collection titles)
|
void |
setTypes(Collection types)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
CONTRIBUTOR
public static final String CONTRIBUTOR
- See Also:
- Constant Field Values
COVERAGE
public static final String COVERAGE
- See Also:
- Constant Field Values
CREATOR
public static final String CREATOR
- See Also:
- Constant Field Values
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
FORMAT
public static final String FORMAT
- See Also:
- Constant Field Values
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
LANGUAGE
public static final String LANGUAGE
- See Also:
- Constant Field Values
PUBLISHER
public static final String PUBLISHER
- See Also:
- Constant Field Values
RELATION
public static final String RELATION
- See Also:
- Constant Field Values
RIGHT
public static final String RIGHT
- See Also:
- Constant Field Values
SOURCE
public static final String SOURCE
- See Also:
- Constant Field Values
SUBJECT
public static final String SUBJECT
- See Also:
- Constant Field Values
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
metadata
org.apache.jetspeed.om.common.GenericMetadata metadata
DublinCoreImpl
public DublinCoreImpl(org.apache.jetspeed.om.common.GenericMetadata md)
- Parameters:
md -
getTitles
public Collection getTitles()
- Specified by:
getTitles in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the titles
setTitles
public void setTitles(Collection titles)
- Specified by:
setTitles in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
titles - The titles to set
getContributors
public Collection getContributors()
- Specified by:
getContributors in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the contributors.
setContributors
public void setContributors(Collection contributors)
- Specified by:
setContributors in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
contributors - The contributors to set.
getCoverages
public Collection getCoverages()
- Specified by:
getCoverages in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the coverages.
setCoverages
public void setCoverages(Collection coverages)
- Specified by:
setCoverages in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
coverages - The coverages to set.
getCreators
public Collection getCreators()
- Specified by:
getCreators in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the creators.
setCreators
public void setCreators(Collection creators)
- Specified by:
setCreators in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
creators - The creators to set.
getDescriptions
public Collection getDescriptions()
- Specified by:
getDescriptions in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the descriptions.
setDescriptions
public void setDescriptions(Collection descriptions)
- Specified by:
setDescriptions in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
descriptions - The descriptions to set.
getFormats
public Collection getFormats()
- Specified by:
getFormats in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the formats.
setFormats
public void setFormats(Collection formats)
- Specified by:
setFormats in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
formats - The formats to set.
getIdentifiers
public Collection getIdentifiers()
- Specified by:
getIdentifiers in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the identifiers.
setIdentifiers
public void setIdentifiers(Collection identifiers)
- Specified by:
setIdentifiers in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
identifiers - The identifiers to set.
getLanguages
public Collection getLanguages()
- Specified by:
getLanguages in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the languages.
setLanguages
public void setLanguages(Collection languages)
- Specified by:
setLanguages in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
languages - The languages to set.
getPublishers
public Collection getPublishers()
- Specified by:
getPublishers in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the publishers.
setPublishers
public void setPublishers(Collection publishers)
- Specified by:
setPublishers in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
publishers - The publishers to set.
getRelations
public Collection getRelations()
- Specified by:
getRelations in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the relations.
setRelations
public void setRelations(Collection relations)
- Specified by:
setRelations in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
relations - The relations to set.
getRights
public Collection getRights()
- Specified by:
getRights in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the rights.
setRights
public void setRights(Collection rights)
- Specified by:
setRights in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
rights - The rights to set.
getSources
public Collection getSources()
- Specified by:
getSources in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the sources.
setSources
public void setSources(Collection sources)
- Specified by:
setSources in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
sources - The sources to set.
getSubjects
public Collection getSubjects()
- Specified by:
getSubjects in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the subjects.
setSubjects
public void setSubjects(Collection subjects)
- Specified by:
setSubjects in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
subjects - The subjects to set.
getTypes
public Collection getTypes()
- Specified by:
getTypes in interface org.apache.jetspeed.om.common.DublinCore
- Returns:
- Returns the types.
setTypes
public void setTypes(Collection types)
- Specified by:
setTypes in interface org.apache.jetspeed.om.common.DublinCore
- Parameters:
types - The types to set.
addContributor
public void addContributor(Locale locale,
String contributor)
- Specified by:
addContributor in interface org.apache.jetspeed.om.common.DublinCore
addCoverage
public void addCoverage(Locale locale,
String coverage)
- Specified by:
addCoverage in interface org.apache.jetspeed.om.common.DublinCore
addCreator
public void addCreator(Locale locale,
String creator)
- Specified by:
addCreator in interface org.apache.jetspeed.om.common.DublinCore
addDescription
public void addDescription(Locale locale,
String description)
- Specified by:
addDescription in interface org.apache.jetspeed.om.common.DublinCore
addFormat
public void addFormat(Locale locale,
String format)
- Specified by:
addFormat in interface org.apache.jetspeed.om.common.DublinCore
addIdentifier
public void addIdentifier(Locale locale,
String identifier)
- Specified by:
addIdentifier in interface org.apache.jetspeed.om.common.DublinCore
addLanguage
public void addLanguage(Locale locale,
String language)
- Specified by:
addLanguage in interface org.apache.jetspeed.om.common.DublinCore
addPublisher
public void addPublisher(Locale locale,
String publisher)
- Specified by:
addPublisher in interface org.apache.jetspeed.om.common.DublinCore
addRelation
public void addRelation(Locale locale,
String relation)
- Specified by:
addRelation in interface org.apache.jetspeed.om.common.DublinCore
addRight
public void addRight(Locale locale,
String right)
- Specified by:
addRight in interface org.apache.jetspeed.om.common.DublinCore
addSource
public void addSource(Locale locale,
String source)
- Specified by:
addSource in interface org.apache.jetspeed.om.common.DublinCore
addSubject
public void addSubject(Locale locale,
String subject)
- Specified by:
addSubject in interface org.apache.jetspeed.om.common.DublinCore
addTitle
public void addTitle(Locale locale,
String title)
- Specified by:
addTitle in interface org.apache.jetspeed.om.common.DublinCore
addType
public void addType(Locale locale,
String type)
- Specified by:
addType in interface org.apache.jetspeed.om.common.DublinCore
addLocalizedFieldToCollection
private void addLocalizedFieldToCollection(Collection fields,
Locale locale,
String value)
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.