public class DublinCoreSchema extends XMPSchema
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTRIBUTOR |
static java.lang.String |
COVERAGE |
static java.lang.String |
CREATOR |
static java.lang.String |
DATE |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
FORMAT |
static java.lang.String |
IDENTIFIER |
static java.lang.String |
LANGUAGE |
static java.lang.String |
PUBLISHER |
static java.lang.String |
RELATION |
static java.lang.String |
RIGHTS |
static java.lang.String |
SOURCE |
static java.lang.String |
SUBJECT |
static java.lang.String |
TITLE |
static java.lang.String |
TYPE |
STRUCTURE_ARRAY_NAME
Constructor and Description |
---|
DublinCoreSchema(XMPMetadata metadata)
Constructor of a Dublin Core schema with preferred prefix
|
DublinCoreSchema(XMPMetadata metadata,
java.lang.String ownPrefix)
Constructor of a Dublin Core schema with specified prefix
|
Modifier and Type | Method and Description |
---|---|
void |
addContributor(java.lang.String properName)
set contributor(s) to the resource (other than the authors)
|
void |
addCreator(java.lang.String properName)
set the author(s) of the resource
|
void |
addDate(java.util.Calendar date)
Set date(s) that something interesting happened to the resource
|
void |
addDescription(java.lang.String lang,
java.lang.String value)
add a textual description of the content of the resource (multiple values may be present for different languages)
|
void |
addLanguage(java.lang.String locale)
Add language(s) used in this resource
|
void |
addPublisher(java.lang.String properName)
add publisher(s)
|
void |
addRelation(java.lang.String text)
Add relationships to other documents
|
void |
addRights(java.lang.String lang,
java.lang.String value)
add informal rights statement, by language.
|
void |
addSubject(java.lang.String text)
add descriptive phrases or keywords that specify the topic of the content of the resource
|
void |
addTitle(java.lang.String lang,
java.lang.String value)
set the title of the document, or the name given to the resource (by language)
|
void |
addType(java.lang.String type)
set the document type (novel, poem, ...)
|
java.util.List<java.lang.String> |
getContributors()
Return a String list of contributor(s)
|
ArrayProperty |
getContributorsProperty()
Return the Bag of contributor(s)
|
java.lang.String |
getCoverage()
Return the value of the coverage
|
TextType |
getCoverageProperty()
Return the Coverage TextType Property
|
java.util.List<java.lang.String> |
getCreators()
Return the creator(s) string value
|
ArrayProperty |
getCreatorsProperty()
Return the Sequence of contributor(s)
|
java.util.List<java.util.Calendar> |
getDates()
Return a calendar list of date
|
ArrayProperty |
getDatesProperty()
Return the sequence of date(s)
|
java.lang.String |
getDescription()
Get the default value for the description.
|
java.lang.String |
getDescription(java.lang.String lang)
Return a language value for description property
|
java.util.List<java.lang.String> |
getDescriptionLanguages()
Return a list of languages defined in description property
|
ArrayProperty |
getDescriptionProperty()
Return the Lang alt Description
|
java.lang.String |
getFormat()
return the file format value
|
TextType |
getFormatProperty()
Return the file format property
|
java.lang.String |
getIdentifier()
return the unique identifier value of this resource
|
TextType |
getIdentifierProperty()
Return the unique identifier property of this resource
|
java.util.List<java.lang.String> |
getLanguages()
Return the list of values defined in the DC language
|
ArrayProperty |
getLanguagesProperty()
Return the bag DC language
|
java.util.List<java.lang.String> |
getPublishers()
Return the list of values defined in the DC publisher
|
ArrayProperty |
getPublishersProperty()
Return the bag DC publisher
|
java.util.List<java.lang.String> |
getRelations()
Return the list of values defined in the DC relation
|
ArrayProperty |
getRelationsProperty()
Return the bag DC relation
|
java.lang.String |
getRights()
Return the default value for Right property
|
java.lang.String |
getRights(java.lang.String lang)
Return a language value for Right property
|
java.util.List<java.lang.String> |
getRightsLanguages()
Return a list of languages defined in Right property
|
ArrayProperty |
getRightsProperty()
Return the Lang alt Rights
|
java.lang.String |
getSource()
return the source value of this resource
|
TextType |
getSourceProperty()
Return the source property of this resource
|
java.util.List<java.lang.String> |
getSubjects()
Return the list of values defined in the DC Subject
|
ArrayProperty |
getSubjectsProperty()
Return the bag DC Subject
|
java.lang.String |
getTitle()
Get the default value for the title.
|
java.lang.String |
getTitle(java.lang.String lang)
Return a language value for Title property
|
java.util.List<java.lang.String> |
getTitleLanguages()
Return a list of languages defined in Title property
|
ArrayProperty |
getTitleProperty()
Return the Lang alt Title
|
java.util.List<java.lang.String> |
getTypes()
Return the list of values defined in the DC Type
|
ArrayProperty |
getTypesProperty()
Return the bag DC Type
|
void |
removeContributor(java.lang.String properName) |
void |
removeCreator(java.lang.String name) |
void |
removeDate(java.util.Calendar date) |
void |
removeLanguage(java.lang.String locale) |
void |
removePublisher(java.lang.String name) |
void |
removeRelation(java.lang.String text) |
void |
removeSubject(java.lang.String text) |
void |
removeType(java.lang.String type) |
void |
setCoverage(java.lang.String text)
set the extent or scope of the resource
|
void |
setCoverageProperty(TextType text)
set the extent or scope of the resource
|
void |
setDescription(java.lang.String value)
Set the default value for the description.
|
void |
setFormat(java.lang.String mimeType)
set the file format used when saving the resource.
|
void |
setFormatProperty(MIMEType text)
Set the unique identifier of the work from which this resource was derived
|
void |
setIdentifier(java.lang.String text)
Set the unique identifier of the resource
|
void |
setIdentifierProperty(TextType text)
Set the unique identifier of the resource
|
void |
setSource(java.lang.String text)
Set the unique identifier of the work from which this resource was derived
|
void |
setSourceProperty(TextType text)
Set the unique identifier of the work from which this resource was derived
|
void |
setTitle(java.lang.String value)
set default title
|
void |
setTitle(java.lang.String lang,
java.lang.String value)
set the title of the document, or the name given to the resource (by language)
|
addBagValue, addBagValueAsSimple, addQualifiedBagValue, addSequenceDateValueAsSimple, addUnqualifiedSequenceDateValue, addUnqualifiedSequenceValue, addUnqualifiedSequenceValue, getAboutAttribute, getAboutValue, getAbstractProperty, getBooleanProperty, getBooleanPropertyValue, getBooleanPropertyValueAsSimple, getDateProperty, getDatePropertyValue, getDatePropertyValueAsSimple, getIntegerProperty, getIntegerPropertyValue, getIntegerPropertyValueAsSimple, getUnqualifiedArrayList, getUnqualifiedBagValueList, getUnqualifiedLanguagePropertyLanguagesValue, getUnqualifiedLanguagePropertyValue, getUnqualifiedSequenceDateValueList, getUnqualifiedSequenceValueList, getUnqualifiedTextProperty, getUnqualifiedTextPropertyValue, instanciateSimple, merge, removeUnqualifiedArrayValue, removeUnqualifiedBagValue, removeUnqualifiedSequenceDateValue, removeUnqualifiedSequenceValue, removeUnqualifiedSequenceValue, reorganizeAltOrder, setAbout, setAboutAsSimple, setBooleanProperty, setBooleanPropertyValue, setBooleanPropertyValueAsSimple, setDateProperty, setDatePropertyValue, setDatePropertyValueAsSimple, setIntegerProperty, setIntegerPropertyValue, setIntegerPropertyValueAsSimple, setTextProperty, setTextPropertyValue, setTextPropertyValueAsSimple, setUnqualifiedLanguagePropertyValue
addSimpleProperty, createArrayProperty, createTextType, getDatePropertyAsCalendar, getNamespace, getPreferedPrefix, getPrefix, getPropertyValueAsString, setNamespace, setPrefix
addNamespace, addProperty, getAllNamespacesWithPrefix, getAllProperties, getArrayProperty, getContainer, getFirstEquivalentProperty, getNamespacePrefix, getProperty, removeProperty
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
public static final java.lang.String CONTRIBUTOR
public static final java.lang.String COVERAGE
public static final java.lang.String CREATOR
public static final java.lang.String DATE
public static final java.lang.String DESCRIPTION
public static final java.lang.String FORMAT
public static final java.lang.String IDENTIFIER
public static final java.lang.String LANGUAGE
public static final java.lang.String PUBLISHER
public static final java.lang.String RELATION
public static final java.lang.String RIGHTS
public static final java.lang.String SOURCE
public static final java.lang.String SUBJECT
public static final java.lang.String TITLE
public static final java.lang.String TYPE
public DublinCoreSchema(XMPMetadata metadata)
metadata
- The metadata to attach this schemapublic DublinCoreSchema(XMPMetadata metadata, java.lang.String ownPrefix)
metadata
- The metadata to attach this schemaownPrefix
- The prefix to assignpublic void addContributor(java.lang.String properName)
properName
- Value to setpublic void removeContributor(java.lang.String properName)
public void setCoverage(java.lang.String text)
text
- Value to setpublic void setCoverageProperty(TextType text)
text
- Property to setpublic void addCreator(java.lang.String properName)
properName
- Value to addpublic void removeCreator(java.lang.String name)
public void addDate(java.util.Calendar date)
date
- Value to addpublic void removeDate(java.util.Calendar date)
public void addDescription(java.lang.String lang, java.lang.String value)
lang
- language concernedvalue
- Value to addpublic void setDescription(java.lang.String value)
value
- The description of this resource.public void setFormat(java.lang.String mimeType)
mimeType
- Value to setpublic void setIdentifier(java.lang.String text)
text
- Value to setpublic void setIdentifierProperty(TextType text)
text
- Property to setpublic void addLanguage(java.lang.String locale)
locale
- Value to setpublic void removeLanguage(java.lang.String locale)
public void addPublisher(java.lang.String properName)
properName
- Value to addpublic void removePublisher(java.lang.String name)
public void addRelation(java.lang.String text)
text
- Value to setpublic void removeRelation(java.lang.String text)
public void addRights(java.lang.String lang, java.lang.String value)
lang
- Language concernedvalue
- Value to setpublic void setSource(java.lang.String text)
text
- Value to setpublic void setSourceProperty(TextType text)
text
- Property to setpublic void setFormatProperty(MIMEType text)
text
- Property to setpublic void addSubject(java.lang.String text)
text
- Value to addpublic void removeSubject(java.lang.String text)
public void setTitle(java.lang.String lang, java.lang.String value)
lang
- Language concernedvalue
- Value to setpublic void setTitle(java.lang.String value)
value
- Value to setpublic void addTitle(java.lang.String lang, java.lang.String value)
lang
- Language concernedvalue
- Value to setsetTitle(String)
public void addType(java.lang.String type)
type
- Value to setpublic ArrayProperty getContributorsProperty()
public java.util.List<java.lang.String> getContributors()
public TextType getCoverageProperty()
public java.lang.String getCoverage()
public ArrayProperty getCreatorsProperty()
public java.util.List<java.lang.String> getCreators()
public ArrayProperty getDatesProperty()
public java.util.List<java.util.Calendar> getDates()
public ArrayProperty getDescriptionProperty()
public java.util.List<java.lang.String> getDescriptionLanguages()
public java.lang.String getDescription(java.lang.String lang)
lang
- The language wantedpublic java.lang.String getDescription()
public TextType getFormatProperty()
public java.lang.String getFormat()
public TextType getIdentifierProperty()
public java.lang.String getIdentifier()
public ArrayProperty getLanguagesProperty()
public java.util.List<java.lang.String> getLanguages()
public ArrayProperty getPublishersProperty()
public java.util.List<java.lang.String> getPublishers()
public ArrayProperty getRelationsProperty()
public java.util.List<java.lang.String> getRelations()
public ArrayProperty getRightsProperty()
public java.util.List<java.lang.String> getRightsLanguages()
public java.lang.String getRights(java.lang.String lang)
lang
- language concernedpublic java.lang.String getRights()
getRights(String)
public TextType getSourceProperty()
public java.lang.String getSource()
public ArrayProperty getSubjectsProperty()
public java.util.List<java.lang.String> getSubjects()
public ArrayProperty getTitleProperty()
public java.util.List<java.lang.String> getTitleLanguages()
public java.lang.String getTitle(java.lang.String lang)
lang
- the language concernedpublic java.lang.String getTitle()
public ArrayProperty getTypesProperty()
public java.util.List<java.lang.String> getTypes()
public void removeType(java.lang.String type)