public class XMPBasicAdapter extends XMPSchemaAdapter
meta
Constructor and Description |
---|
XMPBasicAdapter(Metadata meta,
java.lang.String namespace)
Constructs a new adapter for XMP Basic around the given metadata object.
|
Modifier and Type | Method and 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.
|
addDateToSeq, addObjectToArray, addStringToBag, addStringToSeq, findQualifiedStructure, findQualifiedValue, formatISO8601Date, formatISO8601Date, getDateArray, getDateValue, getLangAlt, getObjectArray, getQName, getSchema, getStringArray, getValue, removeLangAlt, removeStringFromArray, setDateValue, setLangAlt, setValue
public XMPBasicAdapter(Metadata meta, java.lang.String namespace)
meta
- the underlying metadatapublic void setBaseUrl(java.lang.String value)
value
- the base URLpublic java.lang.String getBaseUrl()
public void setCreateDate(java.util.Date creationDate)
creationDate
- the creation datepublic java.util.Date getCreateDate()
public void setCreatorTool(java.lang.String value)
value
- the creator toolpublic java.lang.String getCreatorTool()
public void addIdentifier(java.lang.String value)
value
- the identifier valuepublic void setIdentifier(java.lang.String value, java.lang.String qualifier)
xmpidq:Scheme
is used.value
- the identifier valuequalifier
- the qualifier value (for xmpidq:Scheme)public java.lang.String[] getIdentifiers()
public java.lang.String getIdentifier(java.lang.String qualifier)
xmpidq:Scheme
is used.qualifier
- the qualifierpublic void setModifyDate(java.util.Date modifyDate)
modifyDate
- the modification datepublic java.util.Date getModifyDate()
public void setMetadataDate(java.util.Date metadataDate)
metadataDate
- the modification date for the metadatapublic java.util.Date getMetadataDate()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.