Class XMPBasicAdapter
java.lang.Object
org.apache.xmlgraphics.xmp.XMPSchemaAdapter
org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter
Schema adapter implementation for the XMP Basic schema.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class org.apache.xmlgraphics.xmp.XMPSchemaAdapter
meta -
Constructor Summary
ConstructorsConstructorDescriptionXMPBasicAdapter(Metadata meta, String namespace) Constructs a new adapter for XMP Basic around the given metadata object. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIdentifier(String value) Adds an identifier that unambiguously identify the resource within a given context.Returns the base URL for relative URLs in the document content.getIdentifier(String qualifier) Returns an identifier that matches a given qualifier.String[]Returns an array of all identifiers that unambiguously identify the resource within a given context.voidsetBaseUrl(String value) Sets the base URL for relative URLs in the document content.voidsetCreateDate(Date creationDate) Sets the date and time the resource was originally created.voidsetCreatorTool(String value) Sets the first known tool used to create the resource.voidsetIdentifier(String value, String qualifier) Sets a qualified identifier that unambiguously identify the resource within a given context.voidsetMetadataDate(Date metadataDate) Sets the date and time any metadata for this resource was last changed.voidsetModifyDate(Date modifyDate) Sets the date and time the resource was last modified.Methods inherited from class org.apache.xmlgraphics.xmp.XMPSchemaAdapter
addDateToSeq, addObjectToArray, addStringToBag, addStringToSeq, findQualifiedStructure, findQualifiedValue, formatISO8601Date, formatISO8601Date, getDateArray, getDateValue, getLangAlt, getObjectArray, getQName, getSchema, getStringArray, getValue, removeLangAlt, removeStringFromArray, setCompact, setDateValue, setLangAlt, setValue
-
Field Details
-
ADVISORY
- See Also:
-
BASE_URL
- See Also:
-
CREATE_DATE
- See Also:
-
CREATOR_TOOL
- See Also:
-
IDENTIFIER
- See Also:
-
LABEL
- See Also:
-
METADATA_DATE
- See Also:
-
MODIFY_DATE
- See Also:
-
NICKNAME
- See Also:
-
RATING
- See Also:
-
THUMBNAILS
- See Also:
-
-
Constructor Details
-
XMPBasicAdapter
Constructs a new adapter for XMP Basic around the given metadata object.- Parameters:
meta- the underlying metadata
-
-
Method Details
-
setBaseUrl
Sets the base URL for relative URLs in the document content.- Parameters:
value- the base URL
-
getBaseUrl
Returns the base URL for relative URLs in the document content.- Returns:
- the base URL
-
setCreateDate
Sets the date and time the resource was originally created.- Parameters:
creationDate- the creation date
-
getCreateDate
- Returns:
- the date and time the resource was originally created
-
setCreatorTool
Sets the first known tool used to create the resource.- Parameters:
value- the creator tool
-
getCreatorTool
- Returns:
- the first known tool used to create the resource
-
addIdentifier
Adds an identifier that unambiguously identify the resource within a given context.- Parameters:
value- the identifier value
-
setIdentifier
Sets a qualified identifier that unambiguously identify the resource within a given context. As qualifier,xmpidq:Schemeis used.- Parameters:
value- the identifier valuequalifier- the qualifier value (for xmpidq:Scheme)
-
getIdentifiers
Returns an array of all identifiers that unambiguously identify the resource within a given context.- Returns:
- a String array of all identifiers (or null if not set)
-
getIdentifier
Returns an identifier that matches a given qualifier. As qualifier,xmpidq:Schemeis used.- Parameters:
qualifier- the qualifier- Returns:
- the identifier (or null if no matching value was found)
-
setModifyDate
Sets the date and time the resource was last modified.- Parameters:
modifyDate- the modification date
-
getModifyDate
- Returns:
- the date and time the resource was last modified
-
setMetadataDate
Sets the date and time any metadata for this resource was last changed.- Parameters:
metadataDate- the modification date for the metadata
-
getMetadataDate
- Returns:
- the date and time the resource was originally created
-