Modifier and Type | Interface and Description |
---|---|
static class |
XMPArray.Form
The different types that an XMP Array can be
|
Modifier and Type | Method and Description |
---|---|
XMPArray |
appendArray(XMPArray.Form form)
Append new empty array to the end of the list
|
XMPLanguageAlternative |
appendLanguageAlternative()
Append new language alternative to the end of the list
|
XMPSimple |
appendSimple(java.lang.String value)
Append new simple property to the end of the list
|
XMPStruct |
appendStruct()
Append new empty struct property to the end of the list
|
void |
clear()
Delete all array elements
|
java.lang.String |
dump()
returns a human readable version of this node tree (recursive)
|
XMPNode |
get(int index)
Returns the base item at position index (without knowing the special type)
|
XMPNode |
get(XMPPath path)
Return the node of the given path, relative to this node.
|
XMPArray |
getArray(int index)
Get nested array property in this array at position index
|
XMPArray |
getArray(XMPPath path)
Returns an array from the given path, relative to this node.
|
XMPArray.Form |
getForm()
Returns the array Form (Unordered, ordered or alternative)
|
XMPLanguageAlternative |
getLanguageAlternative(int index)
Get language alternative property in this array at position index
|
XMPLanguageAlternative |
getLanguageAlternative(XMPPath path)
Returns a language Alternative from the given path, relative to this node.
|
XMPSimple |
getSimple(int index)
Get simple array item at position index
|
XMPSimple |
getSimple(XMPPath path)
Returns a simple property from the given path, relative to this node.
|
XMPStruct |
getStruct(int index)
Get a struct array item at position index
|
XMPStruct |
getStruct(XMPPath path)
Returns a struct property from the given path, relative to this node.
|
XMPPath |
getXMPPath()
Return the path of this XMPNode
|
XMPArray |
insertArray(int index,
XMPArray.Form form)
Insert new array at position index and shift other array items to the back.
|
XMPLanguageAlternative |
insertLanguageAlternative(int index)
Insert new language alternative at position index and shift other array items to the back.
|
XMPSimple |
insertSimple(int index,
java.lang.String value)
Insert new simple property at position index and shift other array items to the back.
|
XMPStruct |
insertStruct(int index)
Insert new struct property at position index and shift other array items to the back.
|
boolean |
isEmpty()
Checks if the array is empty
|
XMPNode |
remove(int index)
Remove a node from position index
|
XMPNode |
remove(XMPPath path)
Remove a node at a given path, relative to this node
|
XMPArray |
setArray(int index,
XMPArray.Form form)
Sets a new array at position index.
|
XMPLanguageAlternative |
setLanguageAlternative(int index)
Sets a new language alternative at position index.
|
XMPSimple |
setSimple(int index,
java.lang.String value)
Sets a new simple property at position index.
|
XMPStruct |
setStruct(int index)
Sets a new struct at position index.
|
accept, accessQualifiers, adaptTo, copyReplace, getName, getNamespace, getParent, hasQualifiers, isArrayItem, iterator, size
XMPArray.Form getForm()
void clear()
boolean isEmpty()
XMPNode get(int index)
index
- the index of the array item to getjava.lang.IndexOutOfBoundsException
- if index is not in rangeXMPNode remove(int index)
index
- the index of the element to removejava.lang.IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size())XMPSimple getSimple(int index)
index
- the index for the item to getXMPStruct getStruct(int index)
index
- the index for the item to getXMPArray getArray(int index)
index
- the index for the item to getXMPLanguageAlternative getLanguageAlternative(int index)
index
- the index for the item to getXMPSimple appendSimple(java.lang.String value)
value
- the value of the new property (namespace is the same as the host array)XMPStruct appendStruct()
XMPArray appendArray(XMPArray.Form form)
form
- the array formXMPLanguageAlternative appendLanguageAlternative()
XMPSimple setSimple(int index, java.lang.String value)
index
- the index to set the propertyvalue
- the value of the property to setXMPStruct setStruct(int index)
index
- the index to set the propertyXMPArray setArray(int index, XMPArray.Form form)
index
- the index to set the arrayform
- the array formXMPLanguageAlternative setLanguageAlternative(int index)
index
- the index to set the language alternativeXMPSimple insertSimple(int index, java.lang.String value)
index
- the index for the insertvalue
- the value for the inserted new simple propertyXMPStruct insertStruct(int index)
index
- the index for the insertXMPArray insertArray(int index, XMPArray.Form form)
index
- the index for the insertform
- the array formXMPLanguageAlternative insertLanguageAlternative(int index)
index
- the index for the insertXMPPath getXMPPath()
XMPNode get(XMPPath path)
path
- the path to the desired node relative to this nodeXMPNode remove(XMPPath path) throws XMPException
path
- the path to the node that shall be deletedXMPException
- throws in case the remove path points to
an xml:lang qualifier of a Language AlternativeXMPSimple getSimple(XMPPath path)
path
- the path to the simple property, relative to this node.XMPStruct getStruct(XMPPath path)
path
- the path to the struct property, relative to this node.XMPArray getArray(XMPPath path)
path
- the path to the array, relative to this node.XMPLanguageAlternative getLanguageAlternative(XMPPath path)
path
- the path to the langAlt, relative to this node.java.lang.String dump()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"