Class XMPMetaImpl
XMPMeta.
- Since:
- 17.02.2006
-
Field Summary
Fields inherited from interface com.itextpdf.kernel.xmp.XMPConst
ARRAY_ITEM_NAME, ARRAY_LAST_ITEM, CONFORMANCE, FALSESTR, HISTORY, NS_ADOBESTOCKPHOTO, NS_ASF, NS_BWF, NS_CAMERARAW, NS_CREATOR_ATOM, NS_DC, NS_DC_DEPRECATED, NS_DICOM, NS_DM, NS_EXIF, NS_EXIF_AUX, NS_EXIFX, NS_IPTCCORE, NS_IPTCEXT, NS_IX, NS_JP2K, NS_JPEG, NS_PDF, NS_PDFA_EXTENSION, NS_PDFA_FIELD, NS_PDFA_ID, NS_PDFA_PROPERTY, NS_PDFA_SCHEMA, NS_PDFA_TYPE, NS_PDFUA_ID, NS_PDFX, NS_PDFX_ID, NS_PHOTOSHOP, NS_PLUS, NS_PNG, NS_PSALBUM, NS_RDF, NS_RIFFINFO, NS_SCRIPT, NS_SWF, NS_TIFF, NS_TRANSIENT, NS_TXMP, NS_WAV, NS_X, NS_XML, NS_XMP, NS_XMP_BJ, NS_XMP_MM, NS_XMP_NOTE, NS_XMP_RIGHTS, PART, RDF_TYPE, REV, TAG_XAPMETA, TAG_XMPMETA, TITLE, TRUESTR, TYPE_DIMENSIONS, TYPE_FONT, TYPE_GRAPHICS, TYPE_IDENTIFIERQUAL, TYPE_IMAGE, TYPE_MANIFESTITEM, TYPE_PAGEDFILE, TYPE_RESOURCEEVENT, TYPE_RESOURCEREF, TYPE_ST_JOB, TYPE_ST_VERSION, TYPE_TEXT, X_DEFAULT, XML_LANG, XMP_PI -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for an empty metadata object.XMPMetaImpl(com.itextpdf.kernel.xmp.impl.XMPNode tree) Constructor for a cloned metadata tree. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendArrayItem(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) Simplifies the construction of an array by not requiring that you pre-create an empty array.voidappendArrayItem(String schemaNS, String arrayName, String itemValue) clone()Performs a deep clone of the XMPMeta-objectintcountArrayItems(String schemaNS, String arrayName) Returns the number of items in the array.voiddeleteArrayItem(String schemaNS, String arrayName, int itemIndex) Deletes the given XMP subtree rooted at the given array item.voiddeleteProperty(String schemaNS, String propName) Deletes the given XMP subtree rooted at the given property.voiddeleteQualifier(String schemaNS, String propName, String qualNS, String qualName) Deletes the given XMP subtree rooted at the given qualifier.voiddeleteStructField(String schemaNS, String structName, String fieldNS, String fieldName) Deletes the given XMP subtree rooted at the given struct field.booleandoesArrayItemExist(String schemaNS, String arrayName, int itemIndex) Tells if the array item exists.booleandoesPropertyExist(String schemaNS, String propName) Returns whether the property exists.booleandoesQualifierExist(String schemaNS, String propName, String qualNS, String qualName) DoesQualifierExist tells if the qualifier exists.booleandoesStructFieldExist(String schemaNS, String structName, String fieldNS, String fieldName) DoesStructFieldExist tells if the struct field exists.Renders this node and the tree unter this node in a human readable form.getArrayItem(String schemaNS, String arrayName, int itemIndex) Provides access to items within an array.getLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang) These functions provide convenient support for localized text properties, including a number of special and obscure aspects.This correlates to the about-attribute, returns the empty String if no name is set.getProperty(String schemaNS, String propName) The property value getter-methods all take a property specification: the first two parameters are always the top level namespace URI (the "schema" namespace) and the basic name of the property being referenced.protected XMPPropertygetProperty(String schemaNS, String propName, int valueType) Returns a property, but the result value can be requested.byte[]getPropertyBase64(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.getPropertyBoolean(String schemaNS, String propName) These are very similar togetProperty()andSetProperty()above, but the value is returned or provided in a literal form instead of as a UTF-8 string.getPropertyCalendar(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.getPropertyDate(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.getPropertyDouble(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.getPropertyInteger(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.getPropertyLong(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.protected ObjectgetPropertyObject(String schemaNS, String propName, int valueType) Returns a property, but the result value can be requested.getPropertyString(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.getQualifier(String schemaNS, String propName, String qualNS, String qualName) Provides access to a qualifier attached to a property.com.itextpdf.kernel.xmp.impl.XMPNodegetRoot()getStructField(String schemaNS, String structName, String fieldNS, String fieldName) Provides access to fields within a nested structure.voidinsertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidinsertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Inserts an item into an array previous to the given index.iterator()Constructs an iterator for the properties within this XMP object.iterator(IteratorOptions options) Constructs an iterator for the properties within this XMP object using some options.iterator(String schemaNS, String propName, IteratorOptions options) Construct an iterator for the properties within an XMP object.voidnormalize(ParseOptions options) Perform the normalization as a separate parsing step.voidsetArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidsetArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Replaces an item within an array.voidsetLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) voidsetLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) Modifies the value of a selected item in an alt-text array.voidsetObjectName(String name) voidsetPacketHeader(String packetHeader) Sets the packetHeader attributes, only used by the parser.voidsetProperty(String schemaNS, String propName, Object propValue) voidsetProperty(String schemaNS, String propName, Object propValue, PropertyOptions options) The property valuesettersall take a property specification, their differences are in the form of this.voidsetPropertyBase64(String schemaNS, String propName, byte[] propValue) voidsetPropertyBase64(String schemaNS, String propName, byte[] propValue, PropertyOptions options) Convenience method to set a property from a binarybyte[]-array, which is serialized as base64-string.voidsetPropertyBoolean(String schemaNS, String propName, boolean propValue) voidsetPropertyBoolean(String schemaNS, String propName, boolean propValue, PropertyOptions options) Convenience method to set a property to a literalbooleanvalue.voidsetPropertyCalendar(String schemaNS, String propName, Calendar propValue) voidsetPropertyCalendar(String schemaNS, String propName, Calendar propValue, PropertyOptions options) Convenience method to set a property with a Java Calendar-object, which is serialized to an ISO8601 date.voidsetPropertyDate(String schemaNS, String propName, XMPDateTime propValue) voidsetPropertyDate(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) Convenience method to set a property with an XMPDateTime-object, which is serialized to an ISO8601 date.voidsetPropertyDouble(String schemaNS, String propName, double propValue) voidsetPropertyDouble(String schemaNS, String propName, double propValue, PropertyOptions options) Convenience method to set a property to a literaldoublevalue.voidsetPropertyInteger(String schemaNS, String propName, int propValue) voidsetPropertyInteger(String schemaNS, String propName, int propValue, PropertyOptions options) Convenience method to set a property to a literalintvalue.voidsetPropertyLong(String schemaNS, String propName, long propValue) voidsetPropertyLong(String schemaNS, String propName, long propValue, PropertyOptions options) Convenience method to set a property to a literallongvalue.voidvoidsetQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) Provides access to a qualifier attached to a property.voidsetStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) voidsetStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) Provides access to fields within a nested structure.voidsort()Sorts the complete datamodel according to the following rules: Schema nodes are sorted by prefix.
-
Constructor Details
-
XMPMetaImpl
public XMPMetaImpl()Constructor for an empty metadata object. -
XMPMetaImpl
public XMPMetaImpl(com.itextpdf.kernel.xmp.impl.XMPNode tree) Constructor for a cloned metadata tree.- Parameters:
-
tree- an prefilled metadata tree which fulfills allXMPNodecontracts.
-
-
Method Details
-
appendArrayItem
public void appendArrayItem(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) throws XMPException Description copied from interface:XMPMetaSimplifies the construction of an array by not requiring that you pre-create an empty array. The array that is assigned is created automatically if it does not yet exist. Each call to appendArrayItem() appends an item to the array. The corresponding parameters have the same use as setArrayItem(). The arrayOptions parameter is used to specify what kind of array. If the array exists, it must have the specified form.- Specified by:
-
appendArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as in getProperty. -
arrayName- The name of the array. May be a general path expression, must not be null or the empty string. Has the same namespace prefix usage as propPath in getProperty. -
arrayOptions- Option flags describing the array form. The only valid options are-
PropertyOptions.ARRAY, -
PropertyOptions.ARRAY_ORDERED, -
PropertyOptions.ARRAY_ALTERNATEor -
PropertyOptions.ARRAY_ALT_TEXT.
nullor useXMPMeta.appendArrayItem(String, String, String). -
-
itemValue- the value of the array item. Has the same usage as propValue in getProperty. -
itemOptions- Option flags describing the item to append (PropertyOptions) - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
appendArrayItem
public void appendArrayItem(String schemaNS, String arrayName, String itemValue) throws XMPException - Specified by:
-
appendArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array -
arrayName- The name of the array -
itemValue- the value of the array item - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
countArrayItems
Description copied from interface:XMPMetaReturns the number of items in the array.- Specified by:
-
countArrayItemsin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as in getProperty. -
arrayName- The name of the array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). - Returns:
- Returns the number of items in the array.
- Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
deleteArrayItem
Description copied from interface:XMPMetaDeletes the given XMP subtree rooted at the given array item. It is not an error if the array item does not exist.- Specified by:
-
deleteArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as in getProperty. -
arrayName- The name of the array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
itemIndex- The index of the desired item. Arrays in XMP are indexed from 1. The constantXMPConst.ARRAY_LAST_ITEMalways refers to the last existing array item.
-
deleteProperty
Description copied from interface:XMPMetaDeletes the given XMP subtree rooted at the given property. It is not an error if the property does not exist.- Specified by:
-
deletePropertyin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as in getProperty.
-
deleteQualifier
Description copied from interface:XMPMetaDeletes the given XMP subtree rooted at the given qualifier. It is not an error if the qualifier does not exist.- Specified by:
-
deleteQualifierin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as ingetProperty(). -
propName- The name of the property to which the qualifier is attached. Has the same usage as in getProperty. -
qualNS- The namespace URI for the qualifier. Has the same URI and prefix usage as the schemaNS parameter. -
qualName- The name of the qualifier. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the propName parameter.
-
deleteStructField
public void deleteStructField(String schemaNS, String structName, String fieldNS, String fieldName) Description copied from interface:XMPMetaDeletes the given XMP subtree rooted at the given struct field. It is not an error if the field does not exist.- Specified by:
-
deleteStructFieldin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as ingetProperty(). -
structName- The name of the struct. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName in getProperty. -
fieldNS- The namespace URI for the field. Has the same URI and prefix usage as the schemaNS parameter. -
fieldName- The name of the field. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the structName parameter.
-
doesPropertyExist
Description copied from interface:XMPMetaReturns whether the property exists.- Specified by:
-
doesPropertyExistin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
- Returns true if the property exists.
-
doesArrayItemExist
Description copied from interface:XMPMetaTells if the array item exists.- Specified by:
-
doesArrayItemExistin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as ingetProperty(). -
arrayName- The name of the array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
itemIndex- The index of the desired item. Arrays in XMP are indexed from 1. The constantXMPConst.ARRAY_LAST_ITEMalways refers to the last existing array item. - Returns:
-
Returns
trueif the array exists,falseotherwise.
-
doesStructFieldExist
public boolean doesStructFieldExist(String schemaNS, String structName, String fieldNS, String fieldName) Description copied from interface:XMPMetaDoesStructFieldExist tells if the struct field exists.- Specified by:
-
doesStructFieldExistin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as ingetProperty(). -
structName- The name of the struct. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
fieldNS- The namespace URI for the field. Has the same URI and prefix usage as the schemaNS parameter. -
fieldName- The name of the field. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the structName parameter. - Returns:
- Returns true if the field exists.
-
doesQualifierExist
public boolean doesQualifierExist(String schemaNS, String propName, String qualNS, String qualName) Description copied from interface:XMPMetaDoesQualifierExist tells if the qualifier exists.- Specified by:
-
doesQualifierExistin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as ingetProperty(). -
propName- The name of the property to which the qualifier is attached. Has the same usage as ingetProperty(). -
qualNS- The namespace URI for the qualifier. Has the same URI and prefix usage as the schemaNS parameter. -
qualName- The name of the qualifier. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the propName parameter. - Returns:
- Returns true if the qualifier exists.
-
getArrayItem
public XMPProperty getArrayItem(String schemaNS, String arrayName, int itemIndex) throws XMPException Description copied from interface:XMPMetaProvides access to items within an array. The index is passed as an integer, you need not worry about the path string syntax for array items, convert a loop index to a string, etc.- Specified by:
-
getArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as in getProperty. -
arrayName- The name of the array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
itemIndex- The index of the desired item. Arrays in XMP are indexed from 1. The constantXMPConst.ARRAY_LAST_ITEMalways refers to the last existing array item. - Returns:
-
Returns a
XMPPropertycontaining the value and the options ornullif the property does not exist. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
getLocalizedText
public XMPProperty getLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang) throws XMPException Description copied from interface:XMPMetaThese functions provide convenient support for localized text properties, including a number of special and obscure aspects. Localized text properties are stored in alt-text arrays. They allow multiple concurrent localizations of a property value, for example a document title or copyright in several languages. The most important aspect of these functions is that they select an appropriate array item based on one or two RFC 3066 language tags. One of these languages, the "specific" language, is preferred and selected if there is an exact match. For many languages it is also possible to define a "generic" language that may be used if there is no specific language match. The generic language must be a valid RFC 3066 primary subtag, or the empty string. For example, a specific language of "en-US" should be used in the US, and a specific language of "en-UK" should be used in England. It is also appropriate to use "en" as the generic language in each case. If a US document goes to England, the "en-US" title is selected by using the "en" generic language and the "en-UK" specific language. It is considered poor practice, but allowed, to pass a specific language that is just an RFC 3066 primary tag. For example "en" is not a good specific language, it should only be used as a generic language. Passing "i" or "x" as the generic language is also considered poor practice but allowed. Advice from the W3C about the use of RFC 3066 language tags can be found at: http://www.w3.org/International/articles/language-tags/Note: RFC 3066 language tags must be treated in a case insensitive manner. The XMP Toolkit does this by normalizing their capitalization:
- The primary subtag is lower case, the suggested practice of ISO 639.
- All 2 letter secondary subtags are upper case, the suggested practice of ISO 3166.
- All other subtags are lower case. The XMP specification defines an artificial language,
- "x-default", that is used to explicitly denote a default item in an alt-text array.
- Look for an exact match with the specific language.
- If a generic language is given, look for a partial match.
- Look for an x-default item.
- Choose the first item.
getLocalizedTextreturns information about a selected item in an alt-text array. The array item is selected according to the rules given above. Note: In a future version of this API a method using Javajava.lang.Localewill be added.- Specified by:
-
getLocalizedTextin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the alt-text array. Has the same usage as ingetProperty(). -
altTextName- The name of the alt-text array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
genericLang- The name of the generic language as an RFC 3066 primary subtag. May benullor the empty string if no generic language is wanted. -
specificLang- The name of the specific language as an RFC 3066 tag. Must not benullor the empty string. - Returns:
-
Returns an
XMPPropertycontaining the value, the actual language and the options if an appropriate alternate collection item exists,nullif the property. does not exist. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setLocalizedText
public void setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaModifies the value of a selected item in an alt-text array. Creates an appropriate array item if necessary, and handles special cases for the x-default item. If the selected item is from a match with the specific language, the value of that item is modified. If the existing value of that item matches the existing value of the x-default item, the x-default item is also modified. If the array only has 1 existing item (which is not x-default), an x-default item is added with the given value. If the selected item is from a match with the generic language and there are no other generic matches, the value of that item is modified. If the existing value of that item matches the existing value of the x-default item, the x-default item is also modified. If the array only has 1 existing item (which is not x-default), an x-default item is added with the given value. If the selected item is from a partial match with the generic language and there are other partial matches, a new item is created for the specific language. The x-default item is not modified. If the selected item is from the last 2 rules then a new item is created for the specific language. If the array only had an x-default item, the x-default item is also modified. If the array was empty, items are created for the specific language and x-default. Note: In a future version of this API a method using Javajava.lang.Localewill be added.- Specified by:
-
setLocalizedTextin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the alt-text array. Has the same usage as ingetProperty(). -
altTextName- The name of the alt-text array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
genericLang- The name of the generic language as an RFC 3066 primary subtag. May benullor the empty string if no generic language is wanted. -
specificLang- The name of the specific language as an RFC 3066 tag. Must not benullor the empty string. -
itemValue- A pointer to thenullterminated UTF-8 string that is the new value for the appropriate array item. -
options- Option flags, none are defined at present. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setLocalizedText
public void setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) throws XMPException - Specified by:
-
setLocalizedTextin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the alt-text array -
altTextName- The name of the alt-text array -
genericLang- The name of the generic language -
specificLang- The name of the specific language -
itemValue- the new value for the appropriate array item - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
getProperty
Description copied from interface:XMPMetaThe property value getter-methods all take a property specification: the first two parameters are always the top level namespace URI (the "schema" namespace) and the basic name of the property being referenced. See the introductory discussion of path expression usage for more information.All of the functions return an object inherited from
PropertyBaseornullif the property does not exists. The result object contains the value of the property and option flags describing the property. Arrays and the non-leaf levels of nodes do not have values.See
PropertyOptionsfor detailed information about the options.This is the simplest property getter, mainly for top level simple properties or after using the path composition functions in XMPPathFactory.
- Specified by:
-
getPropertyin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. May benullor the empty string if the first component of the propName path contains a namespace prefix. The URI must be for a registered namespace. -
propName- The name of the property. May be a general path expression, must not benullor the empty string. Using a namespace prefix on the first component is optional. If present without a schemaNS value then the prefix specifies the namespace. The prefix must be for a registered namespace. If both a schemaNS URI and propName prefix are present, they must be corresponding parts of a registered namespace. - Returns:
-
Returns a
XMPPropertycontaining the value and the options ornullif the property does not exist. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
getProperty
protected XMPProperty getProperty(String schemaNS, String propName, int valueType) throws XMPException Returns a property, but the result value can be requested. It can be one ofVALUE_STRING,VALUE_BOOLEAN,VALUE_INTEGER,VALUE_LONG,VALUE_DOUBLE,VALUE_DATE,VALUE_CALENDAR,VALUE_BASE64.- Parameters:
-
schemaNS- a schema namespace -
propName- a property name or path -
valueType- the type of the value, see VALUE_... - Returns:
-
Returns an
XMPProperty - Throws:
-
XMPException- Collects any exception that occurs. - See Also:
-
getPropertyObject
protected Object getPropertyObject(String schemaNS, String propName, int valueType) throws XMPException Returns a property, but the result value can be requested.- Parameters:
-
schemaNS- a schema namespace -
propName- a property name or path -
valueType- the type of the value, see VALUE_... - Returns:
-
Returns the node value as an object according to the
valueType. - Throws:
-
XMPException- Collects any exception that occurs. - See Also:
-
getPropertyBoolean
Description copied from interface:XMPMetaThese are very similar togetProperty()andSetProperty()above, but the value is returned or provided in a literal form instead of as a UTF-8 string. The path composition functions inXMPPathFactorymay be used to compose an path expression for fields in nested structures, items in arrays, or qualifiers.- Specified by:
-
getPropertyBooleanin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a
Booleanvalue ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyBoolean
public void setPropertyBoolean(String schemaNS, String propName, boolean propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property to a literalbooleanvalue.- Specified by:
-
setPropertyBooleanin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the literal property value asboolean. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyBoolean
public void setPropertyBoolean(String schemaNS, String propName, boolean propValue) throws XMPException - Specified by:
-
setPropertyBooleanin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the literal property value asboolean - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getPropertyInteger
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property.- Specified by:
-
getPropertyIntegerin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns an
Integervalue ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyInteger
public void setPropertyInteger(String schemaNS, String propName, int propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property to a literalintvalue.- Specified by:
-
setPropertyIntegerin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the literal property value asint. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyInteger
public void setPropertyInteger(String schemaNS, String propName, int propValue) throws XMPException - Specified by:
-
setPropertyIntegerin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the literal property value asint - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getPropertyLong
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property.- Specified by:
-
getPropertyLongin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a
Longvalue ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyLong
public void setPropertyLong(String schemaNS, String propName, long propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property to a literallongvalue.- Specified by:
-
setPropertyLongin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the literal property value aslong. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyLong
- Specified by:
-
setPropertyLongin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the literal property value aslong - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getPropertyDouble
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property.- Specified by:
-
getPropertyDoublein interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a
Doublevalue ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyDouble
public void setPropertyDouble(String schemaNS, String propName, double propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property to a literaldoublevalue.- Specified by:
-
setPropertyDoublein interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the literal property value asdouble. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyDouble
public void setPropertyDouble(String schemaNS, String propName, double propValue) throws XMPException - Specified by:
-
setPropertyDoublein interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the literal property value asdouble - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getPropertyDate
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property.- Specified by:
-
getPropertyDatein interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a
XMPDateTime-object ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyDate
public void setPropertyDate(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property with an XMPDateTime-object, which is serialized to an ISO8601 date.- Specified by:
-
setPropertyDatein interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the property value asXMPDateTime. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyDate
public void setPropertyDate(String schemaNS, String propName, XMPDateTime propValue) throws XMPException - Specified by:
-
setPropertyDatein interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the property value asXMPDateTime - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getPropertyCalendar
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property.- Specified by:
-
getPropertyCalendarin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a Java
Calendar-object ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyCalendar
public void setPropertyCalendar(String schemaNS, String propName, Calendar propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property with a Java Calendar-object, which is serialized to an ISO8601 date.- Specified by:
-
setPropertyCalendarin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the property value as JavaCalendar. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyCalendar
public void setPropertyCalendar(String schemaNS, String propName, Calendar propValue) throws XMPException - Specified by:
-
setPropertyCalendarin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the property value asCalendar - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getPropertyBase64
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property.- Specified by:
-
getPropertyBase64in interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a
byte[]-array contained the decoded base64 value ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
getPropertyString
Description copied from interface:XMPMetaConvenience method to retrieve the literal value of a property. Note: There is nosetPropertyString(), becausesetProperty()sets a string value.- Specified by:
-
getPropertyStringin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as ingetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). - Returns:
-
Returns a
Stringvalue ornullif the property does not exist. - Throws:
-
XMPException- Wraps all exceptions that may occur, especially conversion errors.
-
setPropertyBase64
public void setPropertyBase64(String schemaNS, String propName, byte[] propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaConvenience method to set a property from a binarybyte[]-array, which is serialized as base64-string.- Specified by:
-
setPropertyBase64in interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as insetProperty(). -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the literal property value as byte array. -
options- options of the property to set (optional). - Throws:
-
XMPException- Wraps all exceptions that may occur.
-
setPropertyBase64
public void setPropertyBase64(String schemaNS, String propName, byte[] propValue) throws XMPException - Specified by:
-
setPropertyBase64in interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property -
propName- The name of the property -
propValue- the literal property value as byte array - Throws:
-
XMPException- Wraps all exceptions - See Also:
-
getQualifier
public XMPProperty getQualifier(String schemaNS, String propName, String qualNS, String qualName) throws XMPException Description copied from interface:XMPMetaProvides access to a qualifier attached to a property. The namespace for the qualifier is passed as a URI, you need not worry about the path string syntax. In many regards qualifiers are like struct fields. See the introductory discussion of qualified properties for more information.The names of qualifiers should be XML qualified names, that is within an XML namespace. The path syntax for a qualified name uses the namespace prefix. This is unreliable since the prefix is never guaranteed. The URI is the formal name, the prefix is just a local shorthand in a given sequence of XML text.
Note: Qualifiers are only supported for simple leaf properties at this time.
- Specified by:
-
getQualifierin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as in getProperty. -
propName- The name of the property to which the qualifier is attached. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as ingetProperty(). -
qualNS- The namespace URI for the qualifier. Has the same URI and prefix usage as the schemaNS parameter. -
qualName- The name of the qualifier. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the propName parameter. - Returns:
-
Returns a
XMPPropertycontaining the value and the options of the qualifier ornullif the property does not exist. The name of the qualifier must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the propName parameter.The value of the qualifier is only set if it has one (Arrays and non-leaf levels of structs do not have values).
- Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
getStructField
public XMPProperty getStructField(String schemaNS, String structName, String fieldNS, String fieldName) throws XMPException Description copied from interface:XMPMetaProvides access to fields within a nested structure. The namespace for the field is passed as a URI, you need not worry about the path string syntax.The names of fields should be XML qualified names, that is within an XML namespace. The path syntax for a qualified name uses the namespace prefix. This is unreliable since the prefix is never guaranteed. The URI is the formal name, the prefix is just a local shorthand in a given sequence of XML text.
- Specified by:
-
getStructFieldin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as in getProperty. -
structName- The name of the struct. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName ingetProperty(). -
fieldNS- The namespace URI for the field. Has the same URI and prefix usage as the schemaNS parameter. -
fieldName- The name of the field. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the structName parameter. - Returns:
-
Returns a
XMPPropertycontaining the value and the options ornullif the property does not exist. Arrays and non-leaf levels of structs do not have values. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
iterator
Description copied from interface:XMPMetaConstructs an iterator for the properties within this XMP object.- Specified by:
-
iteratorin interfaceXMPMeta - Returns:
-
Returns an
XMPIterator. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur. - See Also:
-
iterator
Description copied from interface:XMPMetaConstructs an iterator for the properties within this XMP object using some options.- Specified by:
-
iteratorin interfaceXMPMeta - Parameters:
-
options- Option flags to control the iteration. - Returns:
-
Returns an
XMPIterator. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur. - See Also:
-
iterator
public XMPIterator iterator(String schemaNS, String propName, IteratorOptions options) throws XMPException Description copied from interface:XMPMetaConstruct an iterator for the properties within an XMP object. According to the parameters it iterates the entire data tree, properties within a specific schema, or a subtree rooted at a specific node.- Specified by:
-
iteratorin interfaceXMPMeta - Parameters:
-
schemaNS- Optional schema namespace URI to restrict the iteration. Omitted (visit all schema) by passingnullor empty String. -
propName- Optional property name to restrict the iteration. May be an arbitrary path expression. Omitted (visit all properties) by passingnullor empty String. If no schema URI is given, it is ignored. -
options- Option flags to control the iteration. SeeIteratorOptionsfor details. - Returns:
-
Returns an
XMPIteratorfor thisXMPMeta-object considering the given options. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setArrayItem
public void setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaReplaces an item within an array. The index is passed as an integer, you need not worry about the path string syntax for array items, convert a loop index to a string, etc. The array passed must already exist. In normal usage the selected array item is modified. A new item is automatically appended if the index is the array size plus 1.- Specified by:
-
setArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as in getProperty. -
arrayName- The name of the array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName in getProperty. -
itemIndex- The index of the desired item. Arrays in XMP are indexed from 1. To address the last existing item, useXMPMeta.countArrayItems(String, String)to find out the length of the array. -
itemValue- the new value of the array item. Has the same usage as propValue insetProperty(). -
options- the set options for the item. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setArrayItem
public void setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) throws XMPException - Specified by:
-
setArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI -
arrayName- The name of the array -
itemIndex- The index to insert the new item -
itemValue- the new value of the array item - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
insertArrayItem
public void insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaInserts an item into an array previous to the given index. The index is passed as an integer, you need not worry about the path string syntax for array items, convert a loop index to a string, etc. The array passed must already exist. In normal usage the selected array item is modified. A new item is automatically appended if the index is the array size plus 1.- Specified by:
-
insertArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array. Has the same usage as in getProperty. -
arrayName- The name of the array. May be a general path expression, must not benullor the empty string. Has the same namespace prefix usage as propName in getProperty. -
itemIndex- The index to insert the new item. Arrays in XMP are indexed from 1. UseXMPConst.ARRAY_LAST_ITEMto append items. -
itemValue- the new value of the array item. Has the same usage as propValue insetProperty(). -
options- the set options that decide about the kind of the node. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
insertArrayItem
public void insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) throws XMPException - Specified by:
-
insertArrayItemin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the array -
arrayName- The name of the array -
itemIndex- The index to insert the new item -
itemValue- the value of the array item - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
setProperty
public void setProperty(String schemaNS, String propName, Object propValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaThe property valuesettersall take a property specification, their differences are in the form of this. The first two parameters are always the top level namespace URI (theschemanamespace) and the basic name of the property being referenced. See the introductory discussion of path expression usage for more information.All of the functions take a string value for the property and option flags describing the property. The value must be Unicode in UTF-8 encoding. Arrays and non-leaf levels of structs do not have values. Empty arrays and structs may be created using appropriate option flags. All levels of structs that is assigned implicitly are created if necessary. appendArayItem implicitly creates the named array if necessary.
See
PropertyOptionsfor detailed information about the options.This is the simplest property setter, mainly for top level simple properties or after using the path composition functions in
XMPPathFactory.- Specified by:
-
setPropertyin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the property. Has the same usage as in getProperty. -
propName- The name of the property. Has the same usage as ingetProperty(). -
propValue- the value for the property (only leaf properties have a value). Arrays and non-leaf levels of structs do not have values. Must benullif the value is not relevant.
The value is automatically detected: Boolean, Integer, Long, Double, XMPDateTime and byte[] are handled, on all othertoString()is called. -
options- Option flags describing the property. See the earlier description. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setProperty
- Specified by:
-
setPropertyin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI -
propName- The name of the property -
propValue- the value for the property - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
setQualifier
public void setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaProvides access to a qualifier attached to a property. The namespace for the qualifier is passed as a URI, you need not worry about the path string syntax. In many regards qualifiers are like struct fields. See the introductory discussion of qualified properties for more information. The names of qualifiers should be XML qualified names, that is within an XML namespace. The path syntax for a qualified name uses the namespace prefix, which is unreliable because the prefix is never guaranteed. The URI is the formal name, the prefix is just a local shorthand in a given sequence of XML text. The property the qualifier will be attached has to exist.- Specified by:
-
setQualifierin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as in getProperty. -
propName- The name of the property to which the qualifier is attached. Has the same usage as in getProperty. -
qualNS- The namespace URI for the qualifier. Has the same URI and prefix usage as the schemaNS parameter. -
qualName- The name of the qualifier. Must be a single XML name, must not benullor the empty string. Has the same namespace prefix usage as the propName parameter. -
qualValue- A pointer to thenullterminated UTF-8 string that is the value of the qualifier, if the qualifier has a value. Has the same usage as propValue in getProperty. -
options- Option flags describing the qualifier. See the earlier description. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setQualifier
public void setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue) throws XMPException - Specified by:
-
setQualifierin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct -
propName- The name of the property to which the qualifier is attached -
qualNS- The namespace URI for the qualifier -
qualName- The name of the qualifier -
qualValue- the value of the qualifier - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
setStructField
public void setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) throws XMPException Description copied from interface:XMPMetaProvides access to fields within a nested structure. The namespace for the field is passed as a URI, you need not worry about the path string syntax. The names of fields should be XML qualified names, that is within an XML namespace. The path syntax for a qualified name uses the namespace prefix, which is unreliable because the prefix is never guaranteed. The URI is the formal name, the prefix is just a local shorthand in a given sequence of XML text.- Specified by:
-
setStructFieldin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct. Has the same usage as in getProperty. -
structName- The name of the struct. May be a general path expression, must not be null or the empty string. Has the same namespace prefix usage as propName in getProperty. -
fieldNS- The namespace URI for the field. Has the same URI and prefix usage as the schemaNS parameter. -
fieldName- The name of the field. Must be a single XML name, must not be null or the empty string. Has the same namespace prefix usage as the structName parameter. -
fieldValue- the value of thefield, if the field has a value. Has the same usage as propValue in getProperty. -
options- Option flags describing the field. See the earlier description. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
setStructField
public void setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) throws XMPException - Specified by:
-
setStructFieldin interfaceXMPMeta - Parameters:
-
schemaNS- The namespace URI for the struct -
structName- The name of the struct -
fieldNS- The namespace URI for the field -
fieldName- The name of the field -
fieldValue- the value of the field - Throws:
-
XMPException- Wraps all errors and exceptions - See Also:
-
getObjectName
Description copied from interface:XMPMetaThis correlates to the about-attribute, returns the empty String if no name is set.- Specified by:
-
getObjectNamein interfaceXMPMeta - Returns:
- Returns the name of the XMP object.
-
setObjectName
- Specified by:
-
setObjectNamein interfaceXMPMeta - Parameters:
-
name- Sets the name of the XMP object.
-
getPacketHeader
- Specified by:
-
getPacketHeaderin interfaceXMPMeta - Returns:
-
Returns the unparsed content of the processing instruction. This contains normally the attribute-like elements 'begin="
" id="W5M0MpCehiHzreSzNTczkc9d"' and possibly the deprecated elements 'bytes="1234"' or 'encoding="XXX"'. If the parsed packet has not been wrapped into an xpacket, nullis returned.
-
setPacketHeader
Sets the packetHeader attributes, only used by the parser.- Parameters:
-
packetHeader- the processing instruction content
-
clone
Performs a deep clone of the XMPMeta-object -
dumpObject
Description copied from interface:XMPMetaRenders this node and the tree unter this node in a human readable form.- Specified by:
-
dumpObjectin interfaceXMPMeta - Returns:
- Returns a multiline string containing the dump.
-
sort
public void sort()Description copied from interface:XMPMetaSorts the complete datamodel according to the following rules:- Schema nodes are sorted by prefix.
- Properties at top level and within structs are sorted by full name, that is prefix + local name.
- Array items are not sorted, even if they have no certain order such as bags.
- Qualifier are sorted, with the exception of "xml:lang" and/or "rdf:type" that stay at the top of the list in that order.
-
normalize
Description copied from interface:XMPMetaPerform the normalization as a separate parsing step. Normally it is done during parsing, unless the parsing optionParseOptions.OMIT_NORMALIZATIONis set totrue. Note: It does no harm to call this method to an already normalized xmp object. It was a PDF/A requirement to get hand on the unnormalizedXMPMetaobject.- Specified by:
-
normalizein interfaceXMPMeta - Parameters:
-
options- optional parsing options. - Throws:
-
XMPException- Wraps all errors and exceptions that may occur.
-
getRoot
public com.itextpdf.kernel.xmp.impl.XMPNode getRoot()- Returns:
- Returns the root node of the XMP tree.
-