public class DublinCoreSchema extends XMPSchema
Modifier and Type | Field and Description |
---|---|
static String |
CONTRIBUTOR |
static String |
COVERAGE |
static String |
CREATOR |
static String |
DATE |
static String |
DESCRIPTION |
static String |
FORMAT |
static String |
IDENTIFIER |
static String |
LANGUAGE |
static String |
PUBLISHER |
static String |
RELATION |
static String |
RIGHTS |
static String |
SOURCE |
static String |
SUBJECT |
static String |
TITLE |
static String |
TYPE |
STRUCTURE_ARRAY_NAME
Constructor and Description |
---|
DublinCoreSchema(XMPMetadata metadata)
Constructor of a Dublin Core schema with preferred prefix
|
DublinCoreSchema(XMPMetadata metadata,
String ownPrefix)
Constructor of a Dublin Core schema with specified prefix
|
Modifier and Type | Method and Description |
---|---|
void |
addContributor(String properName)
set contributor(s) to the resource (other than the authors)
|
void |
addCreator(String properName)
set the autor(s) of the resource
|
void |
addDate(Calendar date)
Set date(s) that something interesting happened to the resource
|
void |
addDescription(String lang,
String value)
add a textual description of the content of the resource (multiple values may be present for different languages)
|
void |
addLanguage(String locale)
Add language(s) used in this resource
|
void |
addPublisher(String properName)
add publisher(s)
|
void |
addRelation(String text)
Add relationships to other documents
|
void |
addRights(String lang,
String value)
add informal rights statement, by language.
|
void |
addSubject(String text)
add descriptive phrases or keywords that specify the topic of the content of the resource
|
void |
addTitle(String lang,
String value)
set the title of the document, or the name given to the resource (by language)
|
void |
addType(String type)
set the document type (novel, poem, ...)
|
List<String> |
getContributors()
Return a String list of contributor(s)
|
ArrayProperty |
getContributorsProperty()
Return the Bag of contributor(s)
|
String |
getCoverage()
Return the value of the coverage
|
TextType |
getCoverageProperty()
Return the Coverage TextType Property
|
List<String> |
getCreators()
Return the creator(s) string value
|
ArrayProperty |
getCreatorsProperty()
Return the Sequence of contributor(s)
|
List<Calendar> |
getDates()
Return a calendar list of date
|
ArrayProperty |
getDatesProperty()
Return the sequence of date(s)
|
String |
getDescription()
Get the default value for the description.
|
String |
getDescription(String lang)
Return a language value for description property
|
List<String> |
getDescriptionLanguages()
Return a list of languages defined in description property
|
ArrayProperty |
getDescriptionProperty()
Return the Lang alt Description
|
String |
getFormat()
return the file format value
|
TextType |
getFormatProperty()
Return the file format property
|
String |
getIdentifier()
return the unique identifier value of this resource
|
TextType |
getIdentifierProperty()
Return the unique identifier property of this resource
|
List<String> |
getLanguages()
Return the list of values defined in the DC language
|
ArrayProperty |
getLanguagesProperty()
Return the bag DC language
|
List<String> |
getPublishers()
Return the list of values defined in the DC publisher
|
ArrayProperty |
getPublishersProperty()
Return the bag DC publisher
|
List<String> |
getRelations()
Return the list of values defined in the DC relation
|
ArrayProperty |
getRelationsProperty()
Return the bag DC relation
|
String |
getRights()
Return the default value for Right property
|
String |
getRights(String lang)
Return a language value for Right property
|
List<String> |
getRightsLanguages()
Return a list of languages defined in Right property
|
ArrayProperty |
getRightsProperty()
Return the Lang alt Rights
|
String |
getSource()
return the source value of this resource
|
TextType |
getSourceProperty()
Return the source property of this resource
|
List<String> |
getSubjects()
Return the list of values defined in the DC Subject
|
ArrayProperty |
getSubjectsProperty()
Return the bag DC Subject
|
String |
getTitle()
Get the default value for the title.
|
String |
getTitle(String lang)
Return a language value for Title property
|
List<String> |
getTitleLanguages()
Return a list of languages defined in Title property
|
ArrayProperty |
getTitleProperty()
Return the Lang alt Title
|
List<String> |
getTypes()
Return the list of values defined in the DC Type
|
ArrayProperty |
getTypesProperty()
Return the bag DC Type
|
void |
removeContributor(String properName) |
void |
removeCreator(String name) |
void |
removeDate(Calendar date) |
void |
removeLanguage(String locale) |
void |
removePublisher(String name) |
void |
removeRelation(String text) |
void |
removeSubject(String text) |
void |
removeType(String type) |
void |
setCoverage(String text)
set the extent or scope of the resource
|
void |
setCoverageProperty(TextType text)
set the extent or scope of the resource
|
void |
setDescription(String value)
Set the default value for the description.
|
void |
setFormat(String mimeType)
set the file format used when saving the resource.
|
void |
setFormatProperty(MIMEType text)
Set the unique identifer of the work from which this resource was derived
|
void |
setIdentifier(String text)
Set the unique identifier of the resource
|
void |
setIdentifierProperty(TextType text)
Set the unique identifier of the resource
|
void |
setSource(String text)
Set the unique identifer of the work from which this resource was derived
|
void |
setSourceProperty(TextType text)
Set the unique identifer of the work from which this resource was derived
|
void |
setTitle(String value)
set default title
|
void |
setTitle(String 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 String CONTRIBUTOR
public static final String COVERAGE
public static final String CREATOR
public static final String DATE
public static final String DESCRIPTION
public static final String FORMAT
public static final String IDENTIFIER
public static final String LANGUAGE
public static final String PUBLISHER
public static final String RELATION
public static final String RIGHTS
public static final String SOURCE
public static final String SUBJECT
public static final String TITLE
public static final String TYPE
public DublinCoreSchema(XMPMetadata metadata)
metadata
- The metadata to attach this schemapublic DublinCoreSchema(XMPMetadata metadata, String ownPrefix)
metadata
- The metadata to attach this schemaownPrefix
- The prefix to assignpublic void addContributor(String properName)
properName
- Value to setpublic void removeContributor(String properName)
public void setCoverage(String text)
text
- Value to setpublic void setCoverageProperty(TextType text)
text
- Property to setpublic void addCreator(String properName)
properName
- Value to addpublic void removeCreator(String name)
public void addDate(Calendar date)
date
- Value to addpublic void removeDate(Calendar date)
public void addDescription(String lang, String value)
lang
- language concernedvalue
- Value to addpublic void setDescription(String value)
value
- The description of this resource.public void setFormat(String mimeType)
mimeType
- Value to setpublic void setIdentifier(String text)
text
- Value to setpublic void setIdentifierProperty(TextType text)
text
- Property to setpublic void addLanguage(String locale)
locale
- Value to setpublic void removeLanguage(String locale)
public void addPublisher(String properName)
properName
- Value to addpublic void removePublisher(String name)
public void addRelation(String text)
text
- Value to setpublic void removeRelation(String text)
public void addRights(String lang, String value)
lang
- Language concernedvalue
- Value to setpublic void setSource(String text)
text
- Value to setpublic void setSourceProperty(TextType text)
text
- Property to setpublic void setFormatProperty(MIMEType text)
text
- Property to setpublic void addSubject(String text)
text
- Value to addpublic void removeSubject(String text)
public void setTitle(String lang, String value)
lang
- Language concernedvalue
- Value to setpublic void setTitle(String value)
value
- Value to setpublic void addTitle(String lang, String value)
lang
- Language concernedvalue
- Value to setsetTitle(String)
public void addType(String type)
type
- Value to setpublic ArrayProperty getContributorsProperty()
public List<String> getContributors()
public TextType getCoverageProperty()
public String getCoverage()
public ArrayProperty getCreatorsProperty()
public List<String> getCreators()
public ArrayProperty getDatesProperty()
public List<Calendar> getDates()
public ArrayProperty getDescriptionProperty()
public List<String> getDescriptionLanguages()
public String getDescription(String lang)
lang
- The language wantedpublic String getDescription()
public TextType getFormatProperty()
public String getFormat()
public TextType getIdentifierProperty()
public String getIdentifier()
public ArrayProperty getLanguagesProperty()
public List<String> getLanguages()
public ArrayProperty getPublishersProperty()
public List<String> getPublishers()
public ArrayProperty getRelationsProperty()
public List<String> getRelations()
public ArrayProperty getRightsProperty()
public List<String> getRightsLanguages()
public String getRights(String lang)
lang
- language concernedpublic String getRights()
getRights(String)
public TextType getSourceProperty()
public String getSource()
public ArrayProperty getSubjectsProperty()
public List<String> getSubjects()
public ArrayProperty getTitleProperty()
public List<String> getTitleLanguages()
public String getTitle(String lang)
lang
- the language concernedpublic String getTitle()
public ArrayProperty getTypesProperty()
public List<String> getTypes()
public void removeType(String type)
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.