|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.imageio.metadata.IIOMetadataNode
, Node
, NodeList

public class IIOMetadataNode

, NodeList

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.
IIOMetadata.getAsTree(java.lang.String)
,
IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node)
,
IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node)

| Field Summary |
|---|
Fields inherited from interface org.w3c.dom.Node ![]() |
|---|
ATTRIBUTE_NODE |
| Constructor Summary | |
|---|---|
IIOMetadataNode
Constructs an empty IIOMetadataNode. |
|
IIOMetadataNode
Constructs an IIOMetadataNode with a given node
name. |
|
| Method Summary | |
|---|---|
Node |
appendChild
Adds the node newChild to the end of the list of
children of this node. |
Node |
cloneNode
Returns a duplicate of this node. |
short |
compareDocumentPosition
Compares the reference node, i.e. |
String |
getAttribute
Retrieves an attribute value by name. |
Attr |
getAttributeNode
Retrieves an attribute node by name. |
Attr |
getAttributeNodeNS
Equivalent to getAttributeNode(localName). |
String |
getAttributeNS
Equivalent to getAttribute(localName). |
NamedNodeMap |
getAttributes
A NamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise. |
String |
getBaseURI
The absolute base URI of this node or null if the
implementation wasn't able to obtain an absolute URI. |
NodeList |
getChildNodes
A NodeList that contains all children of this node. |
NodeList |
getElementsByTagName
Returns a NodeList of all descendant Elements
with a given tag name, in document order. |
NodeList |
getElementsByTagNameNS
Equivalent to getElementsByTagName(localName). |
Object |
getFeature
This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in . |
Node |
getFirstChild
Returns the first child of this node, or null if
the node has no children. |
Node |
getLastChild
Returns the last child of this node, or null if
the node has no children. |
int |
getLength
The number of nodes in the list. |
String |
getLocalName
Equivalent to getNodeName. |
String |
getNamespaceURI
Returns null, since namespaces are not supported. |
Node |
getNextSibling
Returns the next sibling of this node, or null if
the node has no next sibling. |
String |
getNodeName
Returns the node name associated with this node. |
short |
getNodeType
Returns the node type, which is always ELEMENT_NODE. |
String |
getNodeValue
The value of this node, depending on its type; see the table above. |
Document |
getOwnerDocument
Returns null, since IIOMetadataNodes
do not belong to any Document. |
Node |
getParentNode
Returns the parent of this node. |
String |
getPrefix
Returns null, since namespaces are not supported. |
Node |
getPreviousSibling
Returns the previous sibling of this node, or null
if this node has no previous sibling. |
TypeInfo |
getSchemaTypeInfo
The type information associated with this element. |
String |
getTagName
The name of the element. |
String |
getTextContent
This attribute returns the text content of this node and its descendants. |
Object |
getUserData
Retrieves the object associated to a key on a this node. |
Object |
getUserObject
Returns the Object value associated with this node. |
boolean |
hasAttribute
Returns true when an attribute with a given name is
specified on this element or has a default value, false
otherwise. |
boolean |
hasAttributeNS
Equivalent to hasAttribute(localName). |
boolean |
hasAttributes
Returns whether this node (if it is an element) has any attributes. |
boolean |
hasChildNodes
Returns true if this node has child nodes. |
Node |
insertBefore
Inserts the node newChild before the existing
child node refChild. |
boolean |
isDefaultNamespace
This method checks if the specified namespaceURI is the
default namespace or not. |
boolean |
isEqualNode
Tests whether two nodes are equal. |
boolean |
isSameNode
Returns whether this node is the same node as the given one. |
boolean |
isSupported
Returns false since DOM features are not
supported. |
Node |
item
Returns the indexth item in the collection. |
String |
lookupNamespaceURI
Look up the namespace URI associated to the given prefix, starting from this node. |
String |
lookupPrefix
Look up the prefix associated to the given namespace URI, starting from this node. |
void |
normalize
Does nothing, since IIOMetadataNodes do not
contain Text children. |
void |
removeAttribute
Removes an attribute by name. |
Attr |
removeAttributeNode
Removes the specified attribute node. |
void |
removeAttributeNS
Equivalent to removeAttribute(localName). |
Node |
removeChild
Removes the child node indicated by oldChild from
the list of children, and returns it. |
Node |
replaceChild
Replaces the child node oldChild with
newChild in the list of children, and returns the
oldChild node. |
void |
setAttribute
Adds a new attribute. |
Attr |
setAttributeNode
Adds a new attribute node. |
Attr |
setAttributeNodeNS
Equivalent to setAttributeNode(newAttr). |
void |
setAttributeNS |