java.lang.Object | |
↳ | javax.imageio.metadata.IIOMetadataNode |
A class representing a node in a meta-data tree, which implements
the
org.w3c.dom.Element
interface and additionally allows
for the storage of non-textual objects via the
getUserObject
and setUserObject
methods.
This class is not intended to be used for general XML
processing. In particular, Element
nodes created
within the Image I/O API are not compatible with those created by
Sun's standard implementation of the org.w3.dom
API.
In particular, the implementation is tuned for simple uses and may
not perform well for intensive processing.
Namespaces are ignored in this implementation. The terms "tag name" and "node name" are always considered to be synonymous.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an empty
IIOMetadataNode . | |||||||||||
Constructs an
IIOMetadataNode with a given node
name. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the node
newChild to the end of the list of
children of this node. | |||||||||||
Returns a duplicate of this node.
| |||||||||||
Equivalent to
getAttribute(localName) . | |||||||||||
Equivalent to
getAttributeNode(localName) . | |||||||||||
Equivalent to
getElementsByTagName(localName) . | |||||||||||
Returns the first child of this node, or
null if
the node has no children. | |||||||||||
Returns the last child of this node, or
null if
the node has no children. | |||||||||||
Equivalent to
getNodeName . | |||||||||||
Returns
null , since namespaces are not supported. | |||||||||||
Returns the next sibling of this node, or
null if
the node has no next sibling. | |||||||||||
Returns the node name associated with this node.
| |||||||||||
Returns the node type, which is always
ELEMENT_NODE . | |||||||||||
Returns
null , since IIOMetadataNode s
do not belong to any Document . | |||||||||||
Returns the parent of this node.
| |||||||||||
Returns
null , since namespaces are not supported. | |||||||||||
Returns the previous sibling of this node, or
null
if this node has no previous sibling. | |||||||||||
Returns the
Object value associated with this node. | |||||||||||
Equivalent to
hasAttribute(localName) . | |||||||||||
Returns
true if this node has child nodes. | |||||||||||
Inserts the node
newChild before the existing
child node refChild . | |||||||||||
Returns
false since DOM features are not
supported. | |||||||||||
Does nothing, since
IIOMetadataNode s do not
contain Text children. | |||||||||||
Equivalent to
removeAttribute(localName) . | |||||||||||
Removes the child node indicated by
oldChild from
the list of children, and returns it. | |||||||||||
Replaces the child node
oldChild with
newChild in the list of children, and returns the
oldChild node. | |||||||||||
Equivalent to
setAttribute(qualifiedName, value) . | |||||||||||
Equivalent to
setAttributeNode(newAttr) . | |||||||||||
Does nothing, since namespaces are not supported.
| |||||||||||
Sets the value associated with this node.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs an empty IIOMetadataNode
.
Constructs an IIOMetadataNode
with a given node
name.
nodeName | the name of the node, as a String .
|
---|
Adds the node newChild
to the end of the list of
children of this node.
newChild | the Node to insert. |
---|
IllegalArgumentException | if newChild is
null .
|
---|
Returns a duplicate of this node. The duplicate node has no
parent (getParentNode
returns null
).
If a shallow clone is being performed (deep
is
false
), the new node will not have any children or
siblings. If a deep clone is being performed, the new node
will form the root of a complete cloned subtree.
deep | if true , recursively clone the subtree
under the specified node; if false , clone only the
node itself. |
---|
DOMException |
---|
Equivalent to getAttribute(localName)
.
Equivalent to getAttributeNode(localName)
.
Equivalent to getElementsByTagName(localName)
.
Returns the first child of this node, or null
if
the node has no children.
Node
, or
null
Returns the last child of this node, or null
if
the node has no children.
Node
, or
null
.
Returns null
, since namespaces are not supported.
DOMException |
---|
Returns the next sibling of this node, or null
if
the node has no next sibling.
Node
, or
null
.
Returns the node name associated with this node.
String
.
Returns the node type, which is always
ELEMENT_NODE
.
short
value ELEMENT_NODE
.
Returns null
, since IIOMetadataNode
s
do not belong to any Document
.
null
.
Returns the parent of this node. A null
value
indicates that the node is the root of its own tree. To add a
node to an existing tree, use one of the
insertBefore
, replaceChild
, or
appendChild
methods.
Node
.Returns the previous sibling of this node, or null
if this node has no previous sibling.
Node
, or
null
.
Returns the Object
value associated with this node.
Object
.Equivalent to hasAttribute(localName)
.
Returns true
if this node has child nodes.
true
if this node has children.
Inserts the node newChild
before the existing
child node refChild
. If refChild
is
null
, insert newChild
at the end of
the list of children.
newChild | the Node to insert. |
---|---|
refChild | the reference Node . |
IllegalArgumentException | if newChild is
null .
|
---|
Returns false
since DOM features are not
supported.
feature | a String , which is ignored. |
---|---|
version | a String , which is ignored.
|
false
.Does nothing, since IIOMetadataNode
s do not
contain Text
children.
Equivalent to removeAttribute(localName)
.
Removes the child node indicated by oldChild
from
the list of children, and returns it.
oldChild | the Node to be removed. |
---|
IllegalArgumentException | if oldChild is
null .
|
---|
Replaces the child node oldChild
with
newChild
in the list of children, and returns the
oldChild
node.
newChild | the Node to insert. |
---|---|
oldChild | the Node to be replaced. |
IllegalArgumentException | if newChild is
null .
|
---|
Equivalent to setAttribute(qualifiedName, value)
.
DOMException |
---|
Equivalent to setAttributeNode(newAttr)
.
DOMException |
---|
DOMException |
---|
Does nothing, since namespaces are not supported.
prefix | a String , which is ignored. |
---|
Sets the value associated with this node.
userObject | the user Object . |
---|