public class XMPSchemaDublinCore extends XMPSchema
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE
The namespace for this schema.
|
NS_NAMESPACE, prefix, schema
Constructor and Description |
---|
XMPSchemaDublinCore(Element element,
String prefix)
Constructor from existing XML element.
|
XMPSchemaDublinCore(XMPMetadata parent)
Construct a new blank Dublin Core schema.
|
Modifier and Type | Method and Description |
---|---|
void |
addContributor(String contributor)
Add a contributor to the list of contributors.
|
void |
addCreator(String creator)
Add a creator.
|
void |
addDate(Calendar date)
Add a date of interest to this schema.
|
void |
addLanguage(String language)
Add a language to the list of languages.
|
void |
addPublisher(String publisher)
Add a publisher to the list of publishers.
|
void |
addRelation(String relation)
Add a relation to the list of relationships.
|
void |
addSubject(String subject)
Add a subject to the list of subjects.
|
void |
addType(String type)
Add a type to the bag of types of this resource.
|
List<String> |
getContributors()
Get the complete list of contributors.
|
String |
getCoverage()
Get the coverage property.
|
List<String> |
getCreators()
Get a complete list of creators.
|
List<Calendar> |
getDates()
Get a list of all dates of interest to this resource.
|
String |
getDescription()
Get the default value for the description.
|
String |
getDescription(String language)
Get the description in a specific language.
|
List<String> |
getDescriptionLanguages()
Get a list of all languages that a description exists for.
|
String |
getFormat()
Get the format property.
|
String |
getIdentifier()
Get the resource id.
|
List<String> |
getLanguages()
Get the complete list of languages.
|
List<String> |
getPublishers()
Get the complete list of publishers.
|
List<String> |
getRelationships()
Get the complete list of relationships.
|
String |
getRights()
Get the default value for the rights of this document.
|
String |
getRights(String language)
Get the rights in a specific language.
|
List<String> |
getRightsLanguages()
Get a list of all languages that a rights description exists for.
|
String |
getSource()
Get the resource source id.
|
List<String> |
getSubjects()
Get the complete list of subjects.
|
String |
getTitle()
Get the default value for the title.
|
String |
getTitle(String language)
Get the title in a specific language.
|
List<String> |
getTitleLanguages()
Get a list of all languages that a title exists for.
|
List<String> |
getTypes()
Get the list of types for this resource.
|
void |
removeContributor(String contributor)
Remove a contributor from the list of contributors.
|
void |
removeCreator(String creator)
Remove a creator from the list of creators.
|
void |
removeDate(Calendar date)
Remove a date from the list of 'interesting' dates.
|
void |
removeLanguage(String language)
Remove a language from the list of languages.
|
void |
removePublisher(String publisher)
Remove a publisher from the list of publishers.
|
void |
removeRelation(String relation)
Remove a relation from the list of relationships.
|
void |
removeSubject(String subject)
Remove a subject from the list of subjects.
|
void |
setCoverage(String coverage)
Set the coverage property.
|
void |
setDescription(String description)
Set the default value for the description.
|
void |
setDescription(String language,
String description)
Set the description of this resource in a specific language.
|
void |
setFormat(String format)
Set the format property.
|
void |
setIdentifier(String id)
Set the resource identifier.
|
void |
setRights(String rights)
Set the default value for the rights of this document.
|
void |
setRights(String language,
String rights)
Set the rights for this resource in a specific language.
|
void |
setSource(String id)
Set the resource source identifier.
|
void |
setTitle(String title)
Set the default value for the title.
|
void |
setTitle(String language,
String title)
Set the title of this resource in a specific language.
|
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 String NAMESPACE
public XMPSchemaDublinCore(XMPMetadata parent)
parent
- The parent metadata schema that this will be part of.public void removeContributor(String contributor)
contributor
- The contributor to remove.public void addContributor(String contributor)
contributor
- The name of the contributor.public List<String> getContributors()
public void setCoverage(String coverage)
coverage
- The extend or scope of the resource.public String getCoverage()
public void removeCreator(String creator)
creator
- The author of the resource.public void addCreator(String creator)
creator
- The author of the resource.public List<String> getCreators()
public void removeDate(Calendar date)
date
- The date to remove.public void addDate(Calendar date)
date
- The date to add to the schema.public List<Calendar> getDates() throws IOException
IOException
- If there is an error creating the date object.public void setDescription(String description)
description
- The description of this resource.public String getDescription()
public void setDescription(String language, String description)
language
- The language code.description
- The description in a specific language.public String getDescription(String language)
language
- The language code to get the description for.public List<String> getDescriptionLanguages()
public void setFormat(String format)
format
- The mime-type of the saved resource.public String getFormat()
public void setIdentifier(String id)
id
- An id to the resource.public String getIdentifier()
public void removeLanguage(String language)
language
- The language to remove.public void addLanguage(String language)
language
- The name of the language.public List<String> getLanguages()
public void removePublisher(String publisher)
publisher
- The publisher to remove.public void addPublisher(String publisher)
publisher
- The name of the publisher.public List<String> getPublishers()
public void removeRelation(String relation)
relation
- The publisher to remove.public void addRelation(String relation)
relation
- The relation to the other resource.public List<String> getRelationships()
public void setRights(String rights)
rights
- The rights for this resource.public String getRights()
public void setRights(String language, String rights)
language
- The language code.rights
- The rights in a specific language.public String getRights(String language)
language
- The language code to get the description for.public List<String> getRightsLanguages()
public void setSource(String id)
id
- An id to the resource source.public String getSource()
public void removeSubject(String subject)
subject
- The subject to remove.public void addSubject(String subject)
subject
- The subject of this resource.public List<String> getSubjects()
public void setTitle(String title)
title
- The title of this resource.public String getTitle()
public void setTitle(String language, String title)
language
- The language code.title
- The title in a specific language.public String getTitle(String language)
language
- The language code to get the description for.public List<String> getTitleLanguages()
public void addType(String type)
type
- The type of resource to add (poem, novel).Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.