public class XMPBasicSchema extends XMPSchema
Modifier and Type | Field and Description |
---|---|
static String |
ADVISORY |
static String |
BASEURL |
static String |
CREATEDATE |
static String |
CREATORTOOL |
static String |
IDENTIFIER |
static String |
LABEL |
static String |
METADATADATE |
static String |
MODIFIER_DATE |
static String |
MODIFYDATE |
static String |
NICKNAME |
static String |
RATING |
static String |
THUMBNAILS |
STRUCTURE_ARRAY_NAME
Constructor and Description |
---|
XMPBasicSchema(XMPMetadata metadata)
Constructor of XMPBasic schema with preferred prefix
|
XMPBasicSchema(XMPMetadata metadata,
String ownPrefix)
Constructor of XMPBasic schema with specified prefix
|
Modifier and Type | Method and Description |
---|---|
void |
addAdvisory(String xpath)
Add a property specification that were edited outside the authoring application
|
void |
addIdentifier(String text)
Add a text string which unambiguously identify the resource within a given context
|
void |
addThumbnails(Integer height,
Integer width,
String format,
String img)
Add thumbnail to thumbnails list
|
List<String> |
getAdvisory()
Get the Advisory property values
|
ArrayProperty |
getAdvisoryProperty()
Get the Advisory property
|
String |
getBaseURL()
Get the BaseURL property value
|
TextType |
getBaseURLProperty()
Get the BaseURL property
|
Calendar |
getCreateDate()
Get the CreateDate property value
|
DateType |
getCreateDateProperty()
Get the CreateDate property
|
String |
getCreatorTool()
Get the CreationTool property value
|
TextType |
getCreatorToolProperty()
Get the CreationTool property
|
List<String> |
getIdentifiers()
Get the Identifier property values
|
ArrayProperty |
getIdentifiersProperty()
Get the Identifier property
|
String |
getLabel()
Get the label property value
|
TextType |
getLabelProperty()
Get the label property
|
Calendar |
getMetadataDate()
Get the MetadataDate property value
|
DateType |
getMetadataDateProperty()
Get the MetadataDate property
|
Calendar |
getModifierDate() |
DateType |
getModifierDateProperty() |
Calendar |
getModifyDate()
Get the ModifyDate property value
|
DateType |
getModifyDateProperty()
Get the ModifyDate property
|
String |
getNickname()
Get the Nickname property value
|
TextType |
getNicknameProperty()
Get the Nickname property
|
Integer |
getRating()
Get the Rating property value
|
IntegerType |
getRatingProperty()
Get the Rating property
|
List<ThumbnailType> |
getThumbnailsProperty()
Get list of Thumbnails
|
void |
removeAdvisory(String xpath) |
void |
removeIdentifier(String text) |
void |
setBaseURL(String url)
Set the base URL for relative URLs in the document content
|
void |
setBaseURLProperty(URLType url)
Set the base URL property
|
void |
setCreateDate(Calendar date)
Set the date and time the resource was originally created
|
void |
setCreateDateProperty(DateType date)
Set the create date property
|
void |
setCreatorTool(String creatorTool)
set the name of the first known tool used to create this resource
|
void |
setCreatorToolProperty(AgentNameType creatorTool)
set the creatorTool property
|
void |
setLabel(String text)
set a word or a short phrase which identifies a document as a member of a user-defined collection
|
void |
setLabelProperty(TextType text)
set the label property
|
void |
setMetadataDate(Calendar date)
Set the date and time that any metadata for this resource was last changed.
|
void |
setMetadataDateProperty(DateType date)
Set the MetadataDate property
|
void |
setModifierDate(Calendar date) |
void |
setModifierDateProperty(DateType date) |
void |
setModifyDate(Calendar date)
Set the date and time the resource was last modified
|
void |
setModifyDateProperty(DateType date)
Set the ModifyDate property
|
void |
setNickname(String text)
Set a short informal name for the resource
|
void |
setNicknameProperty(TextType text)
Set the NickName property
|
void |
setRating(Integer rate)
Set a number that indicates a document's status relative to other documents, used to organize documents in a file
browser (values are user-defined within an application-defined range)
|
void |
setRatingProperty(IntegerType rate)
Set Rating Property
|
addBagValue, addBagValueAsSimple, addQualifiedBagValue, addSequenceDateValueAsSimple, addUnqualifiedSequenceDateValue, addUnqualifiedSequenceValue, addUnqualifiedSequenceValue, getAboutAttribute, getAboutValue, getAbstractProperty, getBooleanProperty, getBooleanPropertyValue, getBooleanPropertyValueAsSimple, getDateProperty, getDatePropertyValue, getDatePropertyValueAsSimple, getIntegerProperty, getIntegerPropertyValue, getIntegerPropertyValueAsSimple, getUnqualifiedArrayList, getUnqualifiedBagValueList, getUnqualifiedLanguagePropertyLanguagesValue, getUnqualifiedLanguagePropertyValue, getUnqualifiedSequenceDateValueList, getUnqualifiedSequenceValueList, getUnqualifiedTextProperty, getUnqualifiedTextPropertyValue, instanciateSimple, merge, removeUnqualifiedArrayValue, removeUnqualifiedBagValue, removeUnqualifiedSequenceDateValue, removeUnqualifiedSequenceValue, removeUnqualifiedSequenceValue, reorganizeAltOrder, setAbout, setAboutAsSimple, setBooleanProperty, setBooleanPropertyValue, setBooleanPropertyValueAsSimple, setDateProperty, setDatePropertyValue, setDatePropertyValueAsSimple, setIntegerProperty, setIntegerPropertyValue, setIntegerPropertyValueAsSimple, setTextProperty, setTextPropertyValue, setTextPropertyValueAsSimple, setUnqualifiedLanguagePropertyValue
addSimpleProperty, createArrayProperty, createTextType, getDatePropertyAsCalendar, getNamespace, getPreferedPrefix, getPrefix, getPropertyValueAsString, setNamespace, setPrefix
addNamespace, addProperty, getAllNamespacesWithPrefix, getAllProperties, getArrayProperty, getContainer, getFirstEquivalentProperty, getNamespacePrefix, getProperty, removeProperty
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
public static final String ADVISORY
public static final String BASEURL
public static final String CREATEDATE
public static final String CREATORTOOL
public static final String IDENTIFIER
public static final String LABEL
public static final String METADATADATE
public static final String MODIFYDATE
public static final String NICKNAME
public static final String RATING
public static final String THUMBNAILS
public static final String MODIFIER_DATE
public XMPBasicSchema(XMPMetadata metadata)
metadata
- The metadata to attach this schemapublic XMPBasicSchema(XMPMetadata metadata, String ownPrefix)
metadata
- The metadata to attach this schemaownPrefix
- The prefix to assignpublic void addThumbnails(Integer height, Integer width, String format, String img)
height
- height formatwidth
- width formatformat
- thumbnail formatimg
- Image datapublic void addAdvisory(String xpath)
xpath
- the value to addpublic void removeAdvisory(String xpath)
public void setBaseURL(String url)
url
- the Base url value to setpublic void setBaseURLProperty(URLType url)
url
- the Base url property to setpublic void setCreateDate(Calendar date)
date
- the value to setpublic void setCreateDateProperty(DateType date)
date
- the create date property to setpublic void setCreatorTool(String creatorTool)
creatorTool
- the creator tool value to setpublic void setCreatorToolProperty(AgentNameType creatorTool)
creatorTool
- the creator tool property to setpublic void addIdentifier(String text)
text
- the identifier value to addpublic void removeIdentifier(String text)
public void setLabel(String text)
text
- the label value to setpublic void setLabelProperty(TextType text)
text
- the label property to setpublic void setMetadataDate(Calendar date)
date
- the Metadata Date value to setpublic void setMetadataDateProperty(DateType date)
date
- the Metadata Date property to setpublic void setModifyDate(Calendar date)
date
- the Modify Date value to setpublic void setModifierDate(Calendar date)
public void setModifyDateProperty(DateType date)
date
- the Modify Date property to setpublic void setModifierDateProperty(DateType date)
public void setNickname(String text)
text
- the Nickname value to setpublic void setNicknameProperty(TextType text)
text
- the Nickname property to setpublic void setRating(Integer rate)
rate
- the rate value to setpublic void setRatingProperty(IntegerType rate)
rate
- the rate property to setpublic ArrayProperty getAdvisoryProperty()
public List<String> getAdvisory()
public TextType getBaseURLProperty()
public String getBaseURL()
public DateType getCreateDateProperty()
public Calendar getCreateDate()
public TextType getCreatorToolProperty()
public String getCreatorTool()
public ArrayProperty getIdentifiersProperty()
public List<String> getIdentifiers()
public TextType getLabelProperty()
public String getLabel()
public DateType getMetadataDateProperty()
public Calendar getMetadataDate()
public DateType getModifyDateProperty()
public DateType getModifierDateProperty()
public Calendar getModifyDate()
public Calendar getModifierDate()
public TextType getNicknameProperty()
public String getNickname()
public IntegerType getRatingProperty()
public Integer getRating()
public List<ThumbnailType> getThumbnailsProperty() throws BadFieldValueException
BadFieldValueException
- if one thumbnail is not thumbnail typeCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.