public interface XMPStruct extends XMPNode
Modifier and Type | Method and Description |
---|---|
XMPArray |
copy(XMPArray array)
Creates a new XMPArray node and copies the whole tree of the provided array into the new node
|
XMPSimple |
copy(XMPSimple simple)
Creates a new XMPSimple node and copies the provided simple node with qualifiers into the new node
|
XMPStruct |
copy(XMPStruct struct)
Creates a new XMPStruct node and copies the whole tree of the provided struct into the new node
|
java.lang.String |
dump()
returns a human readable version of this node tree (recursive)
|
XMPNode |
get(java.lang.String namespace,
java.lang.String name)
Return a child node as base node (without specifing the exact type)
|
XMPNode |
get(XMPPath path)
Return the node of the given path, relative to this node.
|
XMPArray |
getArray(java.lang.String namespace,
java.lang.String name)
Returns a child node as an array
|
XMPArray |
getArray(XMPPath path)
Returns an array from the given path, relative to this node.
|
XMPLanguageAlternative |
getLanguageAlternative(java.lang.String namespace,
java.lang.String name)
Returns a child node as a language Alternative
|
XMPLanguageAlternative |
getLanguageAlternative(XMPPath path)
Returns a language Alternative from the given path, relative to this node.
|
java.util.Iterator<XMPNode> |
getNamespaceProperties(java.lang.String namespace)
Returns an iterator which iterates over all properties in this struct that belong to the specified namespace
|
XMPSimple |
getSimple(java.lang.String namespace,
java.lang.String name)
Returns a child node as a simple property
|
XMPSimple |
getSimple(XMPPath path)
Returns a simple property from the given path, relative to this node.
|
XMPStruct |
getStruct(java.lang.String namespace,
java.lang.String name)
Returns a child node as a nested struct
|
XMPStruct |
getStruct(XMPPath path)
Returns a struct property from the given path, relative to this node.
|
java.util.Set<java.lang.String> |
getUsedNamespaces()
Returns an immutable set of namespaces of properties in this struct.
|
XMPPath |
getXMPPath()
Return the path of this XMPNode
|
XMPNode |
remove(java.lang.String namespace,
java.lang.String name)
Remove a child from the struct
|
XMPNode |
remove(XMPPath path)
Remove a node at a given path, relative to this node
|
void |
renameField(java.lang.String namespace,
java.lang.String name,
java.lang.String newNamespace,
java.lang.String newName)
Renames an existing child node.
|
XMPArray |
setArray(java.lang.String namespace,
java.lang.String name,
XMPArray.Form form)
Create a new child node as an empty array with a certain form (ordered, unordered, alternative)
|
XMPLanguageAlternative |
setLanguageAlternative(java.lang.String namespace,
java.lang.String name)
Create a new child node as an empty Language Alternative
|
XMPSimple |
setSimple(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
Create a new child node as a simple property
|
XMPStruct |
setStruct(java.lang.String namespace,
java.lang.String name)
Create a new child node as a nested empty struct
|
accept, accessQualifiers, adaptTo, copyReplace, getName, getNamespace, getParent, hasQualifiers, isArrayItem, iterator, size
XMPSimple setSimple(java.lang.String namespace, java.lang.String name, java.lang.String value)
namespace
- the namespace of the new childname
- the name of the new childvalue
- the value of the new childjava.lang.IllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPStruct setStruct(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of the new childname
- the name of the new childjava.lang.IllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPArray setArray(java.lang.String namespace, java.lang.String name, XMPArray.Form form)
namespace
- the namespace of the new childname
- the name of the new childform
- the array form of the new childjava.lang.IllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPLanguageAlternative setLanguageAlternative(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of the new childname
- the name of the new childjava.lang.IllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPNode get(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of the child to returnname
- the name of the child to returnXMPNode remove(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of the child to removename
- the name of the child to removeXMPSimple getSimple(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of childname
- the name of the childXMPStruct getStruct(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of childname
- the name of the childXMPArray getArray(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of childname
- the name of the childXMPLanguageAlternative getLanguageAlternative(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of childname
- the name of the childvoid renameField(java.lang.String namespace, java.lang.String name, java.lang.String newNamespace, java.lang.String newName)
namespace
- the namespace of child which is to be renamedname
- the name of child which is to be renamednewNamespace
- new namespace of the child nodenewName
- new name of the child nodejava.lang.IllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#java.util.Iterator<XMPNode> getNamespaceProperties(java.lang.String namespace)
namespace
- the namespaceXMPNode
java.util.Set<java.lang.String> getUsedNamespaces()
XMPSimple copy(XMPSimple simple)
simple
- the simple node to copyXMPStruct copy(XMPStruct struct)
struct
- the Struct to copyXMPArray copy(XMPArray array)
array
- the array to copyXMPPath 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. All Rights Reserved