Package com.adobe.xmp.core
Interface XMPSimple
A simple property represents a key/value pair and can be seen as a leaf of the tree (if not qualified).
-
Method Summary
Modifier and TypeMethodDescriptiondump()returns a human readable version of this node tree (recursive)Return the node of the given path, relative to this node.Returns an array from the given path, relative to this node.Returns a language Alternative from the given path, relative to this node.Returns a simple property from the given path, relative to this node.Returns a struct property from the given path, relative to this node.getValue()Returns the value of this propertyReturn the path of this XMPNodebooleanisURI()Remove a node at a given path, relative to this nodevoidsetURI(boolean isURI) Set URI type.voidSet the value of this propertyMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.adobe.xmp.core.XMPNode
accept, accessQualifiers, adaptTo, copyReplace, getName, getNamespace, getParent, hasQualifiers, isArrayItem, iterator, size
-
Method Details
-
getValue
String getValue()Returns the value of this property- Returns:
- the value of this property
-
setValue
Set the value of this property- Parameters:
value- Value of simple property to set
-
isURI
boolean isURI()- Returns:
- Returns whether is property is of type URI.
-
setURI
void setURI(boolean isURI) Set URI type.- Parameters:
isURI- Property is of type URI or not
-
getXMPPath
XMPPath getXMPPath()Return the path of this XMPNode- Returns:
- the path of this XMPNode
-
get
Return the node of the given path, relative to this node.- Parameters:
path- the path to the desired node relative to this node- Returns:
- the node at the path position or null if it could not be found
-
remove
Remove a node at a given path, relative to this node- Parameters:
path- the path to the node that shall be deleted- Returns:
- the removed node or null, if nothing is removed
- Throws:
XMPException- throws in case the remove path points to an xml:lang qualifier of a Language Alternative
-
getSimple
Returns a simple property from the given path, relative to this node.- Parameters:
path- the path to the simple property, relative to this node.- Returns:
- the desired simple property or null if there was none (or the type is different)
-
getStruct
Returns a struct property from the given path, relative to this node.- Parameters:
path- the path to the struct property, relative to this node.- Returns:
- the desired struct property or null if there was none (or the type is different)
-
getArray
Returns an array from the given path, relative to this node.- Parameters:
path- the path to the array, relative to this node.- Returns:
- the desired array or null if there was none (or the type is different)
-
getLanguageAlternative
Returns a language Alternative from the given path, relative to this node.- Parameters:
path- the path to the langAlt, relative to this node.- Returns:
- the desired langAlt or null if there was none (or the type is different)
-
dump
String dump()returns a human readable version of this node tree (recursive)- Returns:
- returns a human readable version of this node tree (recursive)
-