public class XMPSchemaDublinCore extends XMPSchema
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAMESPACE |
The namespace for this schema.
|
NS_NAMESPACE, prefix, schema
Constructor | Description |
---|---|
XMPSchemaDublinCore(XMPMetadata parent) |
Construct a new blank Dublin Core schema.
|
XMPSchemaDublinCore(org.w3c.dom.Element element,
java.lang.String prefix) |
Constructor from existing XML element.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addContributor(java.lang.String contributor) |
Add a contributor to the list of contributors.
|
void |
addCreator(java.lang.String creator) |
Add a creator.
|
void |
addDate(java.util.Calendar date) |
Add a date of interest to this schema.
|
void |
addLanguage(java.lang.String language) |
Add a language to the list of languages.
|
void |
addPublisher(java.lang.String publisher) |
Add a publisher to the list of publishers.
|
void |
addRelation(java.lang.String relation) |
Add a relation to the list of relationships.
|
void |
addSubject(java.lang.String subject) |
Add a subject to the list of subjects.
|
void |
addType(java.lang.String type) |
Add a type to the bag of types of this resource.
|
java.util.List<java.lang.String> |
getContributors() |
Get the complete list of contributors.
|
java.lang.String |
getCoverage() |
Get the coverage property.
|
java.util.List<java.lang.String> |
getCreators() |
Get a complete list of creators.
|
java.util.List<java.util.Calendar> |
getDates() |
Get a list of all dates of interest to this resource.
|
java.lang.String |
getDescription() |
Get the default value for the description.
|
java.lang.String |
getDescription(java.lang.String language) |
Get the description in a specific language.
|
java.util.List<java.lang.String> |
getDescriptionLanguages() |
Get a list of all languages that a description exists for.
|
java.lang.String |
getFormat() |
Get the format property.
|
java.lang.String |
getIdentifier() |
Get the resource id.
|
java.util.List<java.lang.String> |
getLanguages() |
Get the complete list of languages.
|
java.util.List<java.lang.String> |
getPublishers() |
Get the complete list of publishers.
|
java.util.List<java.lang.String> |
getRelationships() |
Get the complete list of relationships.
|
java.lang.String |
getRights() |
Get the default value for the rights of this document.
|
java.lang.String |
getRights(java.lang.String language) |
Get the rights in a specific language.
|
java.util.List<java.lang.String> |
getRightsLanguages() |
Get a list of all languages that a rights description exists for.
|
java.lang.String |
getSource() |
Get the resource source id.
|
java.util.List<java.lang.String> |
getSubjects() |
Get the complete list of subjects.
|
java.lang.String |
getTitle() |
Get the default value for the title.
|
java.lang.String |
getTitle(java.lang.String language) |
Get the title in a specific language.
|
java.util.List<java.lang.String> |
getTitleLanguages() |
Get a list of all languages that a title exists for.
|
java.util.List<java.lang.String> |
getTypes() |
Get the list of types for this resource.
|
void |
removeContributor(java.lang.String contributor) |
Remove a contributor from the list of contributors.
|
void |
removeCreator(java.lang.String creator) |
Remove a creator from the list of creators.
|
void |
removeDate(java.util.Calendar date) |
Remove a date from the list of 'interesting' dates.
|
void |
removeLanguage(java.lang.String language) |
Remove a language from the list of languages.
|
void |
removePublisher(java.lang.String publisher) |
Remove a publisher from the list of publishers.
|
void |
removeRelation(java.lang.String relation) |
Remove a relation from the list of relationships.
|
void |
removeSubject(java.lang.String subject) |
Remove a subject from the list of subjects.
|
void |
setCoverage(java.lang.String coverage) |
Set the coverage property.
|
void |
setDescription(java.lang.String description) |
Set the default value for the description.
|
void |
setDescription(java.lang.String language,
java.lang.String description) |
Set the description of this resource in a specific language.
|
void |
setFormat(java.lang.String format) |
Set the format property.
|
void |
setIdentifier(java.lang.String id) |
Set the resource identifier.
|
void |
setRights(java.lang.String rights) |
Set the default value for the rights of this document.
|
void |
setRights(java.lang.String language,
java.lang.String rights) |
Set the rights for this resource in a specific language.
|
void |
setSource(java.lang.String id) |
Set the resource source identifier.
|
void |
setTitle(java.lang.String title) |
Set the default value for the title.
|
void |
setTitle(java.lang.String language,
java.lang.String title) |
Set the title of this resource in a specific language.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBagValue, addSequenceDateValue, addSequenceValue, addSequenceValue, getAbout, getBagList, getBooleanProperty, getDateProperty, getElement, getEventSequenceList, getIntegerProperty, getLanguageProperty, getLanguagePropertyLanguages, getSequenceDateList, getSequenceList, getTextProperty, getThumbnailProperty, merge, removeBagValue, removeSequenceDateValue, removeSequenceValue, removeSequenceValue, setAbout, setBooleanProperty, setDateProperty, setIntegerProperty, setLanguageProperty, setTextProperty, setThumbnailProperty
public static final java.lang.String NAMESPACE
public XMPSchemaDublinCore(XMPMetadata parent)
parent
- The parent metadata schema that this will be part of.public XMPSchemaDublinCore(org.w3c.dom.Element element, java.lang.String prefix)
element
- The existing element.prefix
- The schema prefix.public void removeContributor(java.lang.String contributor)
contributor
- The contributor to remove.public void addContributor(java.lang.String contributor)
contributor
- The name of the contributor.public java.util.List<java.lang.String> getContributors()
public void setCoverage(java.lang.String coverage)
coverage
- The extend or scope of the resource.public java.lang.String getCoverage()
public void removeCreator(java.lang.String creator)
creator
- The author of the resource.public void addCreator(java.lang.String creator)
creator
- The author of the resource.public java.util.List<java.lang.String> getCreators()
public void removeDate(java.util.Calendar date)
date
- The date to remove.public void addDate(java.util.Calendar date)
date
- The date to add to the schema.public java.util.List<java.util.Calendar> getDates() throws java.io.IOException
java.io.IOException
- If there is an error creating the date object.public void setDescription(java.lang.String description)
description
- The description of this resource.public java.lang.String getDescription()
public void setDescription(java.lang.String language, java.lang.String description)
language
- The language code.description
- The description in a specific language.public java.lang.String getDescription(java.lang.String language)
language
- The language code to get the description for.public java.util.List<java.lang.String> getDescriptionLanguages()
public void setFormat(java.lang.String format)
format
- The mime-type of the saved resource.public java.lang.String getFormat()
public void setIdentifier(java.lang.String id)
id
- An id to the resource.public java.lang.String getIdentifier()
public void removeLanguage(java.lang.String language)
language
- The language to remove.public void addLanguage(java.lang.String language)
language
- The name of the language.public java.util.List<java.lang.String> getLanguages()
public void removePublisher(java.lang.String publisher)
publisher
- The publisher to remove.public void addPublisher(java.lang.String publisher)
publisher
- The name of the publisher.public java.util.List<java.lang.String> getPublishers()
public void removeRelation(java.lang.String relation)
relation
- The publisher to remove.public void addRelation(java.lang.String relation)
relation
- The relation to the other resource.public java.util.List<java.lang.String> getRelationships()
public void setRights(java.lang.String rights)
rights
- The rights for this resource.public java.lang.String getRights()
public void setRights(java.lang.String language, java.lang.String rights)
language
- The language code.rights
- The rights in a specific language.public java.lang.String getRights(java.lang.String language)
language
- The language code to get the description for.public java.util.List<java.lang.String> getRightsLanguages()
public void setSource(java.lang.String id)
id
- An id to the resource source.public java.lang.String getSource()
public void removeSubject(java.lang.String subject)
subject
- The subject to remove.public void addSubject(java.lang.String subject)
subject
- The subject of this resource.public java.util.List<java.lang.String> getSubjects()
public void setTitle(java.lang.String title)
title
- The title of this resource.public java.lang.String getTitle()
public void setTitle(java.lang.String language, java.lang.String title)
language
- The language code.title
- The title in a specific language.public java.lang.String getTitle(java.lang.String language)
language
- The language code to get the description for.public java.util.List<java.lang.String> getTitleLanguages()
public void addType(java.lang.String type)
type
- The type of resource to add (poem, novel).public java.util.List<java.lang.String> getTypes()
Copyright © 2008–2018. All rights reserved.