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".
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CONTRIBUTOR |
private static java.lang.String |
COVERAGE |
private static java.lang.String |
CREATOR |
private static java.lang.String |
DATE |
private static java.lang.String |
DESCRIPTION |
private static java.lang.String |
FORMAT |
private static java.lang.String |
IDENTIFIER |
private static java.lang.String |
LANGUAGE |
private static java.lang.String |
PUBLISHER |
private static java.lang.String |
RELATION |
private static java.lang.String |
RIGHTS |
private static java.lang.String |
SOURCE |
private static java.lang.String |
SUBJECT |
private static java.lang.String |
TITLE |
private static java.lang.String |
TYPE |
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(java.lang.String value)
Adds a new entry to the list of contributors (other than the authors).
|
void |
addCreator(java.lang.String value)
Adds a new entry to the list of creators (authors of the resource).
|
void |
addDate(java.util.Date value)
Adds a new entry to the list of dates indicating points in time something interesting
happened to the resource.
|
void |
addLanguage(java.lang.String value)
Adds a new entry to the list of languages (RFC 3066).
|
void |
addPublisher(java.lang.String value)
Adds a new entry to the list of publishers.
|
void |
addRelation(java.lang.String value)
Adds a new entry to the list of relationships to other documents.
|
void |
addSubject(java.lang.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(java.lang.String value)
Adds a new entry to the list of document types (for example: novel, poem or working paper).
|
java.lang.String[] |
getContributors()
Returns an array of all contributors.
|
java.lang.String |
getCoverage()
Returns the extent or scope of the resource.
|
java.lang.String[] |
getCreators()
Returns an array of all creators.
|
java.util.Date |
getDate()
Returns a latest date indicating point in time something interesting happened to the
resource.
|
java.util.Date[] |
getDates()
Returns a list of dates indicating point in time something interesting happened to the
resource.
|
java.lang.String |
getDescription()
Returns the description of the content of the resource (in the default language).
|
java.lang.String |
getDescription(java.lang.String lang)
Returns the description of the content of the resource in a language-dependant way.
|
java.lang.String |
getFormat()
Returns the file format used when saving this resource.
|
java.lang.String |
getIdentifier()
Returns the unique identifier of the resource.
|
java.lang.String[] |
getLanguages()
Returns an array of languages.
|
java.lang.String[] |
getPublisher()
Returns an array of publishers.
|
java.lang.String[] |
getRelations()
Returns an array of all relationship to other documents.
|
java.lang.String |
getRights()
Returns the informal rights statement.
|
java.lang.String |
getRights(java.lang.String lang)
Returns the informal rights statement in a language-dependant way.
|
java.lang.String |
getSource()
Returns unique identifier of the work from which this resource was derived.
|
java.lang.String[] |
getSubjects()
Returns an array of all subjects.
|
java.lang.String |
getTitle()
Returns the title of the resource (in the default language).
|
java.lang.String |
getTitle(java.lang.String lang)
Returns the title of the resource in a language-dependant way.
|
java.lang.String[] |
getTypes()
Returns an array of all document types.
|
boolean |
removeContributor(java.lang.String value)
Removes an entry from the list of contributors.
|
boolean |
removeCreator(java.lang.String value)
Removes an entry from the list of creators (authors of the resource).
|
java.lang.String |
removeTitle(java.lang.String lang)
Removes a title of the resource.
|
void |
setCoverage(java.lang.String value)
Sets the extent or scope of the resource.
|
void |
setDescription(java.lang.String lang,
java.lang.String value)
Sets the description of the content of the resource.
|
void |
setFormat(java.lang.String value)
Sets the file format used when saving the resource.
|
void |
setIdentifier(java.lang.String value)
Sets the unique identifier of the resource.
|
void |
setRights(java.lang.String lang,
java.lang.String value)
Sets the informal rights statement.
|
void |
setSource(java.lang.String value)
Sets the unique identifier of the work from which this resource was derived.
|
void |
setTitle(java.lang.String value)
Sets the title of the resource (in the default language).
|
void |
setTitle(java.lang.String lang,
java.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
private static final java.lang.String CONTRIBUTOR
private static final java.lang.String COVERAGE
private static final java.lang.String CREATOR
private static final java.lang.String DATE
private static final java.lang.String DESCRIPTION
private static final java.lang.String FORMAT
private static final java.lang.String IDENTIFIER
private static final java.lang.String LANGUAGE
private static final java.lang.String PUBLISHER
private static final java.lang.String RELATION
private static final java.lang.String RIGHTS
private static final java.lang.String SOURCE
private static final java.lang.String SUBJECT
private static final java.lang.String TITLE
private static final java.lang.String TYPE
public DublinCoreAdapter(Metadata meta)
meta
- the underlying metadatapublic void addContributor(java.lang.String value)
value
- the new valuepublic boolean removeContributor(java.lang.String value)
value
- the value to be removedpublic java.lang.String[] getContributors()
public void setCoverage(java.lang.String value)
value
- the new value.public java.lang.String getCoverage()
public void addCreator(java.lang.String value)
value
- the new valuepublic boolean removeCreator(java.lang.String value)
value
- the value to be removedpublic java.lang.String[] getCreators()
public void addDate(java.util.Date value)
value
- the date valuepublic java.util.Date[] getDates()
public java.util.Date getDate()
public void setDescription(java.lang.String lang, java.lang.String value)
lang
- the language of the value ("x-default" or null for the default language)value
- the new valuepublic java.lang.String getDescription()
public java.lang.String getDescription(java.lang.String lang)
lang
- the language ("x-default" or null for the default language)public void setFormat(java.lang.String value)
value
- a MIME typepublic java.lang.String getFormat()
public void setIdentifier(java.lang.String value)
value
- the new valuepublic java.lang.String getIdentifier()
public void addLanguage(java.lang.String value)
value
- the new valuepublic java.lang.String[] getLanguages()
public void addPublisher(java.lang.String value)
value
- the new valuepublic java.lang.String[] getPublisher()
public void addRelation(java.lang.String value)
value
- the new valuepublic java.lang.String[] getRelations()
public void setRights(java.lang.String lang, java.lang.String value)
lang
- the language of the value ("x-default" or null for the default language)value
- the new valuepublic java.lang.String getRights()
public java.lang.String getRights(java.lang.String lang)
lang
- the language ("x-default" or null for the default language)public void setSource(java.lang.String value)
value
- the new valuepublic java.lang.String getSource()
public void addSubject(java.lang.String value)
value
- the new valuepublic java.lang.String[] getSubjects()
public void setTitle(java.lang.String value)
value
- the new valuepublic void setTitle(java.lang.String lang, java.lang.String value)
lang
- the language of the value ("x-default" or null for the default language)value
- the new valuepublic java.lang.String getTitle()
public java.lang.String getTitle(java.lang.String lang)
lang
- the language ("x-default" or null for the default language)public java.lang.String removeTitle(java.lang.String lang)
lang
- the language variant to be removedpublic void addType(java.lang.String value)
value
- the new valuepublic java.lang.String[] getTypes()