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
|
String |
dump()
returns a human readable version of this node tree (recursive)
|
XMPNode |
get(String namespace,
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(String namespace,
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(String namespace,
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.
|
Iterator<XMPNode> |
getNamespaceProperties(String namespace)
Returns an iterator which iterates over all properties in this struct that belong to the specified namespace
|
XMPSimple |
getSimple(String namespace,
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(String namespace,
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.
|
Set<String> |
getUsedNamespaces()
Returns an immutable set of namespaces of properties in this struct.
|
XMPPath |
getXMPPath()
Return the path of this XMPNode
|
XMPNode |
remove(String namespace,
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(String namespace,
String name,
String newNamespace,
String newName)
Renames an existing child node.
|
XMPArray |
setArray(String namespace,
String name,
XMPArray.Form form)
Create a new child node as an empty array with a certain form (ordered, unordered, alternative)
|
XMPLanguageAlternative |
setLanguageAlternative(String namespace,
String name)
Create a new child node as an empty Language Alternative
|
XMPSimple |
setSimple(String namespace,
String name,
String value)
Create a new child node as a simple property
|
XMPStruct |
setStruct(String namespace,
String name)
Create a new child node as a nested empty struct
|
accept, accessQualifiers, adaptTo, copyReplace, getName, getNamespace, getParent, hasQualifiers, isArrayItem, iterator, size
forEach, spliterator
XMPSimple setSimple(String namespace, String name, String value)
namespace
- the namespace of the new childname
- the name of the new childvalue
- the value of the new childIllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPStruct setStruct(String namespace, String name)
namespace
- the namespace of the new childname
- the name of the new childIllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPArray setArray(String namespace, String name, XMPArray.Form form)
namespace
- the namespace of the new childname
- the name of the new childform
- the array form of the new childIllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPLanguageAlternative setLanguageAlternative(String namespace, String name)
namespace
- the namespace of the new childname
- the name of the new childIllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#XMPNode get(String namespace, String name)
namespace
- the namespace of the child to returnname
- the name of the child to returnXMPNode remove(String namespace, String name)
namespace
- the namespace of the child to removename
- the name of the child to removeXMPSimple getSimple(String namespace, String name)
namespace
- the namespace of childname
- the name of the childXMPStruct getStruct(String namespace, String name)
namespace
- the namespace of childname
- the name of the childXMPArray getArray(String namespace, String name)
namespace
- the namespace of childname
- the name of the childXMPLanguageAlternative getLanguageAlternative(String namespace, String name)
namespace
- the namespace of childname
- the name of the childvoid renameField(String namespace, String name, String newNamespace, 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 nodeIllegalArgumentException
- If name is not valid as per XML Spec or namespace
equals http://www.w3.org/1999/02/22-rdf-syntax-ns#Iterator<XMPNode> getNamespaceProperties(String namespace)
namespace
- the namespaceXMPNode
Set<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.String dump()
Copyright © 2010 - 2020 Adobe. All Rights Reserved