Class XMPBasicSchema
java.lang.Object
org.apache.xmpbox.type.AbstractField
org.apache.xmpbox.type.AbstractComplexProperty
org.apache.xmpbox.type.AbstractStructuredType
org.apache.xmpbox.schema.XMPSchema
org.apache.xmpbox.schema.XMPBasicSchema
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractStructuredType
STRUCTURE_ARRAY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionXMPBasicSchema(XMPMetadata metadata) Constructor of XMPBasic schema with preferred prefixXMPBasicSchema(XMPMetadata metadata, String ownPrefix) Constructor of XMPBasic schema with specified prefix -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdvisory(String xpath) Add a property specification that were edited outside the authoring applicationvoidaddIdentifier(String text) Add a text string which unambiguously identify the resource within a given contextvoidaddThumbnails(Integer height, Integer width, String format, String img) Add thumbnail to thumbnails listGet the Advisory property valuesGet the Advisory propertyGet the BaseURL property valueGet the BaseURL propertyGet the CreateDate property valueGet the CreateDate propertyGet the CreationTool property valueGet the CreationTool propertyGet the Identifier property valuesGet the Identifier propertygetLabel()Get the label property valueGet the label propertyGet the MetadataDate property valueGet the MetadataDate propertyGet the ModifyDate property valueGet the ModifyDate propertyGet the Nickname property valueGet the Nickname propertyGet the Rating property valueGet the Rating propertyGet list of ThumbnailsvoidremoveAdvisory(String xpath) voidremoveIdentifier(String text) voidsetBaseURL(String url) Set the base URL for relative URLs in the document contentvoidSet the base URL propertyvoidsetCreateDate(Calendar date) Set the date and time the resource was originally createdvoidSet the create date propertyvoidsetCreatorTool(String creatorTool) set the name of the first known tool used to create this resourcevoidsetCreatorToolProperty(AgentNameType creatorTool) set the creatorTool propertyvoidset a word or a short phrase which identifies a document as a member of a user-defined collectionvoidsetLabelProperty(TextType text) set the label propertyvoidsetMetadataDate(Calendar date) Set the date and time that any metadata for this resource was last changed.voidSet the MetadataDate propertyvoidsetModifierDate(Calendar date) voidvoidsetModifyDate(Calendar date) Set the date and time the resource was last modifiedvoidSet the ModifyDate propertyvoidsetNickname(String text) Set a short informal name for the resourcevoidsetNicknameProperty(TextType text) Set the NickName propertyvoidSet 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)voidsetRatingProperty(IntegerType rate) Set Rating PropertyMethods inherited from class XMPSchema
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, setUnqualifiedLanguagePropertyValueMethods inherited from class AbstractStructuredType
addSimpleProperty, createArrayProperty, createTextType, getDatePropertyAsCalendar, getNamespace, getPreferedPrefix, getPrefix, getPropertyValueAsString, setNamespace, setPrefixMethods inherited from class AbstractComplexProperty
addNamespace, addProperty, getAllNamespacesWithPrefix, getAllProperties, getArrayProperty, getContainer, getFirstEquivalentProperty, getNamespacePrefix, getProperty, removePropertyMethods inherited from class AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
Field Details
-
ADVISORY
- See Also:
-
BASEURL
- See Also:
-
CREATEDATE
- See Also:
-
CREATORTOOL
- See Also:
-
IDENTIFIER
- See Also:
-
LABEL
- See Also:
-
METADATADATE
- See Also:
-
MODIFYDATE
- See Also:
-
NICKNAME
- See Also:
-
RATING
- See Also:
-
THUMBNAILS
- See Also:
-
MODIFIER_DATE
- See Also:
-
-
Constructor Details
-
XMPBasicSchema
Constructor of XMPBasic schema with preferred prefix- Parameters:
metadata- The metadata to attach this schema
-
XMPBasicSchema
Constructor of XMPBasic schema with specified prefix- Parameters:
metadata- The metadata to attach this schemaownPrefix- The prefix to assign
-
-
Method Details
-
addThumbnails
-
addAdvisory
Add a property specification that were edited outside the authoring application- Parameters:
xpath- the value to add
-
removeAdvisory
-
setBaseURL
Set the base URL for relative URLs in the document content- Parameters:
url- the Base url value to set
-
setBaseURLProperty
Set the base URL property- Parameters:
url- the Base url property to set
-
setCreateDate
Set the date and time the resource was originally created- Parameters:
date- the value to set
-
setCreateDateProperty
Set the create date property- Parameters:
date- the create date property to set
-
setCreatorTool
set the name of the first known tool used to create this resource- Parameters:
creatorTool- the creator tool value to set
-
setCreatorToolProperty
set the creatorTool property- Parameters:
creatorTool- the creator tool property to set
-
addIdentifier
Add a text string which unambiguously identify the resource within a given context- Parameters:
text- the identifier value to add
-
removeIdentifier
-
setLabel
set a word or a short phrase which identifies a document as a member of a user-defined collection- Parameters:
text- the label value to set
-
setLabelProperty
set the label property- Parameters:
text- the label property to set
-
setMetadataDate
Set the date and time that any metadata for this resource was last changed. (should be equals or more recent than the createDate)- Parameters:
date- the Metadata Date value to set
-
setMetadataDateProperty
Set the MetadataDate property- Parameters:
date- the Metadata Date property to set
-
setModifyDate
Set the date and time the resource was last modified- Parameters:
date- the Modify Date value to set
-
setModifierDate
-
setModifyDateProperty
Set the ModifyDate property- Parameters:
date- the Modify Date property to set
-
setModifierDateProperty
-
setNickname
Set a short informal name for the resource- Parameters:
text- the Nickname value to set
-
setNicknameProperty
Set the NickName property- Parameters:
text- the Nickname property to set
-
setRating
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)- Parameters:
rate- the rate value to set
-
setRatingProperty
Set Rating Property- Parameters:
rate- the rate property to set
-
getAdvisoryProperty
-
getAdvisory
-
getBaseURLProperty
-
getBaseURL
-
getCreateDateProperty
Get the CreateDate property- Returns:
- the CreateDate property
-
getCreateDate
-
getCreatorToolProperty
Get the CreationTool property- Returns:
- the CreationTool property
-
getCreatorTool
-
getIdentifiersProperty
Get the Identifier property- Returns:
- the Identifier property
-
getIdentifiers
-
getLabelProperty
-
getLabel
-
getMetadataDateProperty
Get the MetadataDate property- Returns:
- the MetadataDate property
-
getMetadataDate
Get the MetadataDate property value- Returns:
- the MetadataDate value
-
getModifyDateProperty
Get the ModifyDate property- Returns:
- the ModifyDate property
-
getModifierDateProperty
-
getModifyDate
-
getModifierDate
-
getNicknameProperty
-
getNickname
-
getRatingProperty
-
getRating
-
getThumbnailsProperty
Get list of Thumbnails- Returns:
- List of all thumbnails properties defined
- Throws:
BadFieldValueException- if one thumbnail is not thumbnail type
-