org.apache.xmlgraphics.xmp.schemas
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 |
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 |
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).
|
java.lang.String[] |
getCreators() |
java.lang.String |
getDescription() |
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[] |
getLanguages() |
java.lang.String[] |
getSubjects() |
java.lang.String |
getTitle() |
java.lang.String |
getTitle(java.lang.String lang)
Returns the title of the resource in a language-dependant way.
|
void |
setDescription(java.lang.String lang,
java.lang.String value)
Sets the description of the content of the resource.
|
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, addStringToBag, addStringToSeq, formatISO8601Date, formatISO8601Date, getDateValue, getLangAlt, getObjectArray, getQName, getSchema, getStringArray, getValue, parseISO8601Date, removeLangAlt, setDateValue, setLangAlt, setValue
public DublinCoreAdapter(Metadata meta)
meta
- the underlying metadatapublic void addCreator(java.lang.String value)
value
- the new valuepublic java.lang.String[] getCreators()
public void addDate(java.util.Date value)
value
- the date valuepublic 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 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 addLanguage(java.lang.String value)
value
- the new valuepublic java.lang.String[] getLanguages()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.