public final class DublinCoreHelper extends Object
MetadataAwareAmetysObject
s.Modifier and Type | Field and Description |
---|---|
static String |
METADATA_DC_CONTAINER
Constant for Dublin Core metadata container name.
|
static String |
METADATA_DC_CONTRIBUTOR
Constant for Dublin Core contributor metadata.
|
static String |
METADATA_DC_COVERAGE
Constant for Dublin Core coverage metadata.
|
static String |
METADATA_DC_CREATOR
Constant for Dublin Core creator metadata.
|
static String |
METADATA_DC_DATE
Constant for Dublin Core date metadata.
|
static String |
METADATA_DC_DESCRIPTION
Constant for Dublin Core description metadata.
|
static String |
METADATA_DC_FORMAT
Constant for Dublin Core title Format.
|
static String |
METADATA_DC_IDENTIFIER
Constant for Dublin Core identifier metadata.
|
static String |
METADATA_DC_LANGUAGE
Constant for Dublin Core language metadata.
|
static String |
METADATA_DC_PUBLISHER
Constant for Dublin Core publisher metadata.
|
static String |
METADATA_DC_RELATION
Constant for Dublin Core relation metadata.
|
static String |
METADATA_DC_RIGHTS
Constant for Dublin Core rights metadata.
|
static String |
METADATA_DC_SOURCE
Constant for Dublin Core source metadata.
|
static String |
METADATA_DC_SUBJECT
Constant for Dublin Core subject metadata.
|
static String |
METADATA_DC_TITLE
Constant for Dublin Core title metadata.
|
static String |
METADATA_DC_TYPE
Constant for Dublin Core type metadata.
|
Modifier | Constructor and Description |
---|---|
private |
DublinCoreHelper() |
Modifier and Type | Method and Description |
---|---|
(package private) static CompositeMetadata |
getDCCompositeMetadata(MetadataAwareAmetysObject object)
Get the Dublin Core composite metadata of the given ametys object.
|
static String |
getDCContributor(MetadataAwareAmetysObject object)
Get the Dublin Core contributor.
|
static String |
getDCContributor(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core contributor.
|
static String |
getDCCoverage(MetadataAwareAmetysObject object)
Get the Dublin Core coverage.
|
static String |
getDCCoverage(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core coverage.
|
static String |
getDCCreator(MetadataAwareAmetysObject object)
Get the Dublin Core creator.
|
static String |
getDCCreator(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core creator.
|
static Date |
getDCDate(MetadataAwareAmetysObject object)
Get the Dublin Core date.
|
static Date |
getDCDate(MetadataAwareAmetysObject object,
Date defaultValue)
Get the Dublin Core date.
|
static String |
getDCDescription(MetadataAwareAmetysObject object)
Get the Dublin Core description.
|
static String |
getDCDescription(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core description.
|
static String |
getDCFormat(MetadataAwareAmetysObject object)
Get the Dublin Core format.
|
static String |
getDCFormat(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core format.
|
static String |
getDCIdentifier(MetadataAwareAmetysObject object)
Get the Dublin Core identifier.
|
static String |
getDCIdentifier(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core identifier.
|
static String |
getDCLanguage(MetadataAwareAmetysObject object)
Get the Dublin Core language.
|
static String |
getDCLanguage(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core language.
|
static String |
getDCPublisher(MetadataAwareAmetysObject object)
Get the Dublin Core publisher.
|
static String |
getDCPublisher(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core publisher.
|
static String |
getDCRelation(MetadataAwareAmetysObject object)
Get the Dublin Core relation.
|
static String |
getDCRelation(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core relation.
|
static String |
getDCRights(MetadataAwareAmetysObject object)
Get the Dublin Core rights.
|
static String |
getDCRights(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core rights.
|
static String |
getDCSource(MetadataAwareAmetysObject object)
Get the Dublin Core source.
|
static String |
getDCSource(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core source.
|
static String[] |
getDCSubject(MetadataAwareAmetysObject object)
Get the Dublin Core subject.
|
static String[] |
getDCSubject(MetadataAwareAmetysObject object,
String[] defaultValue)
Get the Dublin Core subject.
|
static String |
getDCTitle(MetadataAwareAmetysObject object)
Get the Dublin Core title.
|
static String |
getDCTitle(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core title.
|
static String |
getDCType(MetadataAwareAmetysObject object)
Get the Dublin Core type.
|
static String |
getDCType(MetadataAwareAmetysObject object,
String defaultValue)
Get the Dublin Core type.
|
(package private) static ModifiableCompositeMetadata |
getModifiableDCCompositeMetadata(ModifiableMetadataAwareAmetysObject object)
Get the Dublin Core modifiable composite metadata of the given ametys object,
creating it if it doesn't exist.
|
static void |
setDCContributor(ModifiableMetadataAwareAmetysObject object,
String contributor)
Set the Dublin Core contributor.
|
static void |
setDCCoverage(ModifiableMetadataAwareAmetysObject object,
String coverage)
Set the Dublin Core coverage.
|
static void |
setDCCreator(ModifiableMetadataAwareAmetysObject object,
String creator)
Set the Dublin Core creator.
|
static void |
setDCDate(ModifiableMetadataAwareAmetysObject object,
Date date)
Set the Dublin Core date.
|
static void |
setDCDescription(ModifiableMetadataAwareAmetysObject object,
String description)
Set the Dublin Core description.
|
static void |
setDCFormat(ModifiableMetadataAwareAmetysObject object,
String format)
Set the Dublin Core format.
|
static void |
setDCIdentifier(ModifiableMetadataAwareAmetysObject object,
String identifier)
Set the Dublin Core identifier.
|
static void |
setDCLanguage(ModifiableMetadataAwareAmetysObject object,
String language)
Set the Dublin Core language.
|
static void |
setDCPublisher(ModifiableMetadataAwareAmetysObject object,
String publisher)
Set the Dublin Core publisher.
|
static void |
setDCRelation(ModifiableMetadataAwareAmetysObject object,
String relation)
Set the Dublin Core relation.
|
static void |
setDCRights(ModifiableMetadataAwareAmetysObject object,
String rights)
Set the Dublin Core rights.
|
static void |
setDCSource(ModifiableMetadataAwareAmetysObject object,
String source)
Set the Dublin Core source.
|
static void |
setDCSubject(ModifiableMetadataAwareAmetysObject object,
String[] subject)
Set the Dublin Core subject.
|
static void |
setDCTitle(ModifiableMetadataAwareAmetysObject object,
String title)
Set the Dublin Core title.
|
static void |
setDCType(ModifiableMetadataAwareAmetysObject object,
String type)
Set the Dublin Core type.
|
public static final String METADATA_DC_CONTAINER
public static final String METADATA_DC_TITLE
public static final String METADATA_DC_CREATOR
public static final String METADATA_DC_SUBJECT
public static final String METADATA_DC_DESCRIPTION
public static final String METADATA_DC_PUBLISHER
public static final String METADATA_DC_CONTRIBUTOR
public static final String METADATA_DC_DATE
public static final String METADATA_DC_TYPE
public static final String METADATA_DC_FORMAT
public static final String METADATA_DC_IDENTIFIER
public static final String METADATA_DC_SOURCE
public static final String METADATA_DC_LANGUAGE
public static final String METADATA_DC_RELATION
public static final String METADATA_DC_COVERAGE
public static final String METADATA_DC_RIGHTS
private DublinCoreHelper()
public static String getDCTitle(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCTitle(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default title.AmetysRepositoryException
- if an error occurs.public static String getDCCreator(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCCreator(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default creator.AmetysRepositoryException
- if an error occurs.public static String[] getDCSubject(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String[] getDCSubject(MetadataAwareAmetysObject object, String[] defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default subject.AmetysRepositoryException
- if an error occurs.public static String getDCDescription(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCDescription(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default description.AmetysRepositoryException
- if an error occurs.public static String getDCPublisher(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCPublisher(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default publisher.AmetysRepositoryException
- if an error occurs.public static String getDCContributor(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCContributor(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default contributor.AmetysRepositoryException
- if an error occurs.public static Date getDCDate(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static Date getDCDate(MetadataAwareAmetysObject object, Date defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default date.AmetysRepositoryException
- if an error occurs.public static String getDCType(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCType(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default type.AmetysRepositoryException
- if an error occurs.public static String getDCFormat(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCFormat(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default format.AmetysRepositoryException
- if an error occurs.public static String getDCIdentifier(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCIdentifier(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default identifier.AmetysRepositoryException
- if an error occurs.public static String getDCSource(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCSource(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default source.AmetysRepositoryException
- if an error occurs.public static String getDCLanguage(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCLanguage(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default language.AmetysRepositoryException
- if an error occurs.public static String getDCRelation(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCRelation(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default relation.AmetysRepositoryException
- if an error occurs.public static String getDCCoverage(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCCoverage(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default coverage.AmetysRepositoryException
- if an error occurs.public static String getDCRights(MetadataAwareAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static String getDCRights(MetadataAwareAmetysObject object, String defaultValue) throws AmetysRepositoryException
object
- the object.defaultValue
- the default rights.AmetysRepositoryException
- if an error occurs.public static void setDCTitle(ModifiableMetadataAwareAmetysObject object, String title) throws AmetysRepositoryException
object
- the ametys object.title
- the Dublin Core title to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCCreator(ModifiableMetadataAwareAmetysObject object, String creator) throws AmetysRepositoryException
object
- the ametys object.creator
- the Dublin Core creator to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCSubject(ModifiableMetadataAwareAmetysObject object, String[] subject) throws AmetysRepositoryException
object
- the ametys object.subject
- the Dublin Core subject to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCDescription(ModifiableMetadataAwareAmetysObject object, String description) throws AmetysRepositoryException
object
- the ametys object.description
- the Dublin Core description to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCPublisher(ModifiableMetadataAwareAmetysObject object, String publisher) throws AmetysRepositoryException
object
- the ametys object.publisher
- the Dublin Core publisher to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCContributor(ModifiableMetadataAwareAmetysObject object, String contributor) throws AmetysRepositoryException
object
- the ametys object.contributor
- the Dublin Core contributor to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCDate(ModifiableMetadataAwareAmetysObject object, Date date) throws AmetysRepositoryException
object
- the ametys object.date
- the Dublin Core date to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCType(ModifiableMetadataAwareAmetysObject object, String type) throws AmetysRepositoryException
object
- the ametys object.type
- the Dublin Core type to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCFormat(ModifiableMetadataAwareAmetysObject object, String format) throws AmetysRepositoryException
object
- the ametys object.format
- the Dublin Core format to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCIdentifier(ModifiableMetadataAwareAmetysObject object, String identifier) throws AmetysRepositoryException
object
- the ametys object.identifier
- the Dublin Core identifier to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCSource(ModifiableMetadataAwareAmetysObject object, String source) throws AmetysRepositoryException
object
- the ametys object.source
- the Dublin Core source to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCLanguage(ModifiableMetadataAwareAmetysObject object, String language) throws AmetysRepositoryException
object
- the ametys object.language
- the Dublin Core language to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCRelation(ModifiableMetadataAwareAmetysObject object, String relation) throws AmetysRepositoryException
object
- the ametys object.relation
- the Dublin Core relation to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCCoverage(ModifiableMetadataAwareAmetysObject object, String coverage) throws AmetysRepositoryException
object
- the ametys object.coverage
- the Dublin Core coverage to set. Can be null.AmetysRepositoryException
- if an error occurs.public static void setDCRights(ModifiableMetadataAwareAmetysObject object, String rights) throws AmetysRepositoryException
object
- the ametys object.rights
- the Dublin Core rights to set. Can be null.AmetysRepositoryException
- if an error occurs.static CompositeMetadata getDCCompositeMetadata(MetadataAwareAmetysObject object) throws UnknownMetadataException
object
- the ametys object.UnknownMetadataException
- if the CompositeMetadata does not exist.static ModifiableCompositeMetadata getModifiableDCCompositeMetadata(ModifiableMetadataAwareAmetysObject object) throws UnknownMetadataException
object
- the ametys object.UnknownMetadataException
- if the CompositeMetadata does not exist (should never happen).