Class XMPBasicAdapter
- java.lang.Object
-
- org.apache.xmlgraphics.xmp.XMPSchemaAdapter
-
- org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter
-
public class XMPBasicAdapter extends XMPSchemaAdapter
Schema adapter implementation for the XMP Basic schema.
-
-
Field Summary
-
Fields inherited from class org.apache.xmlgraphics.xmp.XMPSchemaAdapter
meta
-
-
Constructor Summary
Constructors Constructor Description XMPBasicAdapter(Metadata meta, java.lang.String namespace)
Constructs a new adapter for XMP Basic around the given metadata object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentifier(java.lang.String value)
Adds an identifier that unambiguously identify the resource within a given context.java.lang.String
getBaseUrl()
Returns the base URL for relative URLs in the document content.java.util.Date
getCreateDate()
java.lang.String
getCreatorTool()
java.lang.String
getIdentifier(java.lang.String qualifier)
Returns an identifier that matches a given qualifier.java.lang.String[]
getIdentifiers()
Returns an array of all identifiers that unambiguously identify the resource within a given context.java.util.Date
getMetadataDate()
java.util.Date
getModifyDate()
void
setBaseUrl(java.lang.String value)
Sets the base URL for relative URLs in the document content.void
setCreateDate(java.util.Date creationDate)
Sets the date and time the resource was originally created.void
setCreatorTool(java.lang.String value)
Sets the first known tool used to create the resource.void
setIdentifier(java.lang.String value, java.lang.String qualifier)
Sets a qualified identifier that unambiguously identify the resource within a given context.void
setMetadataDate(java.util.Date metadataDate)
Sets the date and time any metadata for this resource was last changed.void
setModifyDate(java.util.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, setProperty, setValue
-
-
-
-
Constructor Detail
-
XMPBasicAdapter
public XMPBasicAdapter(Metadata meta, java.lang.String namespace)
Constructs a new adapter for XMP Basic around the given metadata object.- Parameters:
meta
- the underlying metadata
-
-
Method Detail
-
setBaseUrl
public void setBaseUrl(java.lang.String value)
Sets the base URL for relative URLs in the document content.- Parameters:
value
- the base URL
-
getBaseUrl
public java.lang.String getBaseUrl()
Returns the base URL for relative URLs in the document content.- Returns:
- the base URL
-
setCreateDate
public void setCreateDate(java.util.Date creationDate)
Sets the date and time the resource was originally created.- Parameters:
creationDate
- the creation date
-
getCreateDate
public java.util.Date getCreateDate()
- Returns:
- the date and time the resource was originally created
-
setCreatorTool
public void setCreatorTool(java.lang.String value)
Sets the first known tool used to create the resource.- Parameters:
value
- the creator tool
-
getCreatorTool
public java.lang.String getCreatorTool()
- Returns:
- the first known tool used to create the resource
-
addIdentifier
public void addIdentifier(java.lang.String value)
Adds an identifier that unambiguously identify the resource within a given context.- Parameters:
value
- the identifier value
-
setIdentifier
public void setIdentifier(java.lang.String value, java.lang.String qualifier)
Sets a qualified identifier that unambiguously identify the resource within a given context. As qualifier,xmpidq:Scheme
is used.- Parameters:
value
- the identifier valuequalifier
- the qualifier value (for xmpidq:Scheme)
-
getIdentifiers
public java.lang.String[] 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
public java.lang.String getIdentifier(java.lang.String qualifier)
Returns an identifier that matches a given qualifier. As qualifier,xmpidq:Scheme
is used.- Parameters:
qualifier
- the qualifier- Returns:
- the identifier (or null if no matching value was found)
-
setModifyDate
public void setModifyDate(java.util.Date modifyDate)
Sets the date and time the resource was last modified.- Parameters:
modifyDate
- the modification date
-
getModifyDate
public java.util.Date getModifyDate()
- Returns:
- the date and time the resource was last modified
-
setMetadataDate
public void setMetadataDate(java.util.Date metadataDate)
Sets the date and time any metadata for this resource was last changed.- Parameters:
metadataDate
- the modification date for the metadata
-
getMetadataDate
public java.util.Date getMetadataDate()
- Returns:
- the date and time the resource was originally created
-
-