public interface XMPNode extends java.lang.Iterable<XMPNode>
Modifier and Type | Method and Description |
---|---|
void |
accept(XMPNodeVisitor visitor)
Executes the provided visitor
|
XMPQualifiers |
accessQualifiers()
Get a qualifier "facade" for this Node that allows management of qualifiers.
|
<AdapterType> |
adaptTo(java.lang.Class<AdapterType> type)
Save Cast to the type that is passed.
|
void |
copyReplace(XMPNode copyFrom)
Overwrites the current node with a deep copy of node which is provided as input.
|
java.lang.String |
dump()
returns a human readable version of this node tree (recursive)
|
XMPNode |
get(XMPPath path)
Return the node of the given path, relative to this node.
|
XMPArray |
getArray(XMPPath path)
Returns an array from the given path, relative to this node.
|
XMPLanguageAlternative |
getLanguageAlternative(XMPPath path)
Returns a language Alternative from the given path, relative to this node.
|
java.lang.String |
getName()
Returns the name of this node or null if it has no name
|
java.lang.String |
getNamespace()
returns the namespace URI of this node
|
XMPNode |
getParent()
gets the parent of this node.
|
XMPSimple |
getSimple(XMPPath path)
Returns a simple property from the given path, relative to this node.
|
XMPStruct |
getStruct(XMPPath path)
Returns a struct property from the given path, relative to this node.
|
XMPPath |
getXMPPath()
Return the path of this XMPNode
|
boolean |
hasQualifiers()
Checks if the node has qualifiers attached.
|
boolean |
isArrayItem()
Checks if the node's parent is of type XMPArray.
|
java.util.Iterator<XMPNode> |
iterator()
An unmodifiable Iterator that iterates over the child elements of this node.
|
XMPNode |
remove(XMPPath path)
Remove a node at a given path, relative to this node
|
int |
size()
Determine the number of node children.
|
java.util.Iterator<XMPNode> iterator()
iterator
in interface java.lang.Iterable<XMPNode>
void accept(XMPNodeVisitor visitor)
visitor
- the Visitor to executeXMPQualifiers accessQualifiers()
java.lang.String getName()
XMPNode getParent()
java.lang.String getNamespace()
<AdapterType> AdapterType adaptTo(java.lang.Class<AdapterType> type)
type
- The class type this object should be casted tovoid copyReplace(XMPNode copyFrom)
copyFrom
- XMPNode which has to be copiedjava.lang.IllegalArgumentException
- If node sent as parameter to this method is null.java.lang.IllegalStateException
- If this metadata tree is invalid.boolean isArrayItem()
boolean hasQualifiers()
int size()
XMPPath 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"