public class DublinCoreAdapter extends XMPSchemaAdapter
Note: In Adobe's XMP specification dc:subject is defined as "bag Text", but in PDF/A-1 it is defined as "Text". Here it is implemented as "bag Text".
meta
Constructor and Description |
---|
DublinCoreAdapter(Metadata meta)
Constructs a new adapter for Dublin Core around the given metadata object.
|
Modifier and Type | Method and Description |
---|---|
void |
addContributor(String value)
Adds a new entry to the list of contributors (other than the authors).
|
void |
addCreator(String value)
Adds a new entry to the list of creators (authors of the resource).
|
void |
addDate(Date value)
Adds a new entry to the list of dates indicating points in time something interesting
happened to the resource.
|
void |
addLanguage(String value)
Adds a new entry to the list of languages (RFC 3066).
|
void |
addPublisher(String value)
Adds a new entry to the list of publishers.
|
void |
addRelation(String value)
Adds a new entry to the list of relationships to other documents.
|
void |
addSubject(String value)
Adds a new entry to the list of subjects (descriptive phrases or keywords that
specify the topic of the content of the resource).
|
void |
addType(String value)
Adds a new entry to the list of document types (for example: novel, poem or working paper).
|
String[] |
getContributors()
Returns an array of all contributors.
|
String |
getCoverage()
Returns the extent or scope of the resource.
|
String[] |
getCreators()
Returns an array of all creators.
|
Date |
getDate()
Returns a latest date indicating point in time something interesting happened to the
resource.
|
Date[] |
getDates()
Returns a list of dates indicating point in time something interesting happened to the
resource.
|
String |
getDescription()
Returns the description of the content of the resource (in the default language).
|
String |
getDescription(String lang)
Returns the description of the content of the resource in a language-dependant way.
|
String |
getFormat()
Returns the file format used when saving this resource.
|
String |
getIdentifier()
Returns the unique identifier of the resource.
|
String[] |
getLanguages()
Returns an array of languages.
|
String[] |
getPublisher()
Returns an array of publishers.
|
String[] |
getRelations()
Returns an array of all relationship to other documents.
|
String |
getRights()
Returns the informal rights statement.
|
String |
getRights(String lang)
Returns the informal rights statement in a language-dependant way.
|
String |
getSource()
Returns unique identifier of the work from which this resource was derived.
|
String[] |
getSubjects()
Returns an array of all subjects.
|
String |
getTitle()
Returns the title of the resource (in the default language).
|
String |
getTitle(String lang)
Returns the title of the resource in a language-dependant way.
|
String[] |
getTypes()
Returns an array of all document types.
|
boolean |
removeContributor(String value)
Removes an entry from the list of contributors.
|
boolean |
removeCreator(String value)
Removes an entry from the list of creators (authors of the resource).
|
String |
removeTitle(String lang)
Removes a title of the resource.
|
void |
setCoverage(String value)
Sets the extent or scope of the resource.
|
void |
setDescription(String lang,
String value)
Sets the description of the content of the resource.
|
void |
setFormat(String value)
Sets the file format used when saving the resource.
|
void |
setIdentifier(String value)
Sets the unique identifier of the resource.
|
void |
setRights(String lang,
String value)
Sets the informal rights statement.
|
void |
setSource(String value)
Sets the unique identifier of the work from which this resource was derived.
|
void |
setTitle(String value)
Sets the title of the resource (in the default language).
|
void |
setTitle(String lang,
String value)
Sets the title of the resource.
|
addDateToSeq, addObjectToArray, addStringToBag, addStringToSeq, findQualifiedStructure, findQualifiedValue, formatISO8601Date, formatISO8601Date, getDateArray, getDateValue, getLangAlt, getObjectArray, getQName, getSchema, getStringArray, getValue, removeLangAlt, removeStringFromArray, setCompact, setDateValue, setLangAlt, setValue
public DublinCoreAdapter(Metadata meta)
meta
- the underlying metadatapublic void addContributor(String value)
value
- the new valuepublic boolean removeContributor(String value)
value
- the value to be removedpublic String[] getContributors()
public void setCoverage(String value)
value
- the new value.public String getCoverage()
public void addCreator(String value)
value
- the new valuepublic boolean removeCreator(String value)
value
- the value to be removedpublic String[] getCreators()
public void addDate(Date value)
value
- the date valuepublic Date[] getDates()
public Date getDate()
public void setDescription(String lang, String value)
lang
- the language of the value ("x-default" or null for the default language)value
- the new valuepublic String getDescription()
public String getDescription(String lang)
lang
- the language ("x-default" or null for the default language)public void setFormat(String value)
value
- a MIME typepublic String getFormat()
public void setIdentifier(String value)
value
- the new valuepublic String getIdentifier()
public void addLanguage(String value)
value
- the new valuepublic String[] getLanguages()
public void addPublisher(String value)
value
- the new valuepublic String[] getPublisher()
public void addRelation(String value)
value
- the new valuepublic String[] getRelations()
public void setRights(String lang, String value)
lang
- the language of the value ("x-default" or null for the default language)value
- the new valuepublic String getRights()
public String getRights(String lang)
lang
- the language ("x-default" or null for the default language)public void setSource(String value)
value
- the new valuepublic String getSource()
public void addSubject(String value)
value
- the new valuepublic String[] getSubjects()
public void setTitle(String value)
value
- the new valuepublic void setTitle(String lang, String value)
lang
- the language of the value ("x-default" or null for the default language)value
- the new valuepublic String getTitle()
public String getTitle(String lang)
lang
- the language ("x-default" or null for the default language)public String removeTitle(String lang)
lang
- the language variant to be removedpublic void addType(String value)
value
- the new valuepublic String[] getTypes()
Copyright © 2022 Apache Software Foundation. All rights reserved.