javax.imageio.metadata
Class IIOMetadataNode

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.imageio.metadata.IIOMetadataNode
All Implemented Interfaces:
Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element , Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node , NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList

public class IIOMetadataNode
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element , NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.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.

See Also:
IIOMetadata.getAsTree(java.lang.String) sample code for javax.imageio.metadata.IIOMetadata.getAsTree(java.lang.String) definition code for javax.imageio.metadata.IIOMetadata.getAsTree(java.lang.String) , IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node) , IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node)

Field Summary
 
Fields inherited from interface org.w3c.dom.Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
ATTRIBUTE_NODE sample code for org.w3c.dom.Node.ATTRIBUTE_NODE definition code for org.w3c.dom.Node.ATTRIBUTE_NODE , CDATA_SECTION_NODE sample code for org.w3c.dom.Node.CDATA_SECTION_NODE definition code for org.w3c.dom.Node.CDATA_SECTION_NODE , COMMENT_NODE sample code for org.w3c.dom.Node.COMMENT_NODE definition code for org.w3c.dom.Node.COMMENT_NODE , DOCUMENT_FRAGMENT_NODE sample code for org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE definition code for org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE , DOCUMENT_NODE sample code for org.w3c.dom.Node.DOCUMENT_NODE definition code for org.w3c.dom.Node.DOCUMENT_NODE , DOCUMENT_POSITION_CONTAINED_BY sample code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINED_BY definition code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINED_BY , DOCUMENT_POSITION_CONTAINS sample code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINS definition code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINS , DOCUMENT_POSITION_DISCONNECTED sample code for org.w3c.dom.Node.DOCUMENT_POSITION_DISCONNECTED definition code for org.w3c.dom.Node.DOCUMENT_POSITION_DISCONNECTED , DOCUMENT_POSITION_FOLLOWING sample code for org.w3c.dom.Node.DOCUMENT_POSITION_FOLLOWING definition code for org.w3c.dom.Node.DOCUMENT_POSITION_FOLLOWING , DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC sample code for org.w3c.dom.Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC definition code for org.w3c.dom.Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC , DOCUMENT_POSITION_PRECEDING sample code for org.w3c.dom.Node.DOCUMENT_POSITION_PRECEDING definition code for org.w3c.dom.Node.DOCUMENT_POSITION_PRECEDING , DOCUMENT_TYPE_NODE sample code for org.w3c.dom.Node.DOCUMENT_TYPE_NODE definition code for org.w3c.dom.Node.DOCUMENT_TYPE_NODE , ELEMENT_NODE sample code for org.w3c.dom.Node.ELEMENT_NODE definition code for org.w3c.dom.Node.ELEMENT_NODE , ENTITY_NODE sample code for org.w3c.dom.Node.ENTITY_NODE definition code for org.w3c.dom.Node.ENTITY_NODE , ENTITY_REFERENCE_NODE sample code for org.w3c.dom.Node.ENTITY_REFERENCE_NODE definition code for org.w3c.dom.Node.ENTITY_REFERENCE_NODE , NOTATION_NODE sample code for org.w3c.dom.Node.NOTATION_NODE definition code for org.w3c.dom.Node.NOTATION_NODE , PROCESSING_INSTRUCTION_NODE sample code for org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE definition code for org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE , TEXT_NODE sample code for org.w3c.dom.Node.TEXT_NODE definition code for org.w3c.dom.Node.TEXT_NODE
 
Constructor Summary
IIOMetadataNode sample code for javax.imageio.metadata.IIOMetadataNode.IIOMetadataNode() definition code for javax.imageio.metadata.IIOMetadataNode.IIOMetadataNode() ()
          Constructs an empty IIOMetadataNode.
IIOMetadataNode sample code for javax.imageio.metadata.IIOMetadataNode.IIOMetadataNode(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.IIOMetadataNode(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  nodeName)
          Constructs an IIOMetadataNode with a given node name.
 
Method Summary
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node appendChild sample code for javax.imageio.metadata.IIOMetadataNode.appendChild(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.appendChild(org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  newChild)
          Adds the node newChild to the end of the list of children of this node.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node cloneNode sample code for javax.imageio.metadata.IIOMetadataNode.cloneNode(boolean) definition code for javax.imageio.metadata.IIOMetadataNode.cloneNode(boolean) (boolean deep)
          Returns a duplicate of this node.
 short compareDocumentPosition sample code for javax.imageio.metadata.IIOMetadataNode.compareDocumentPosition(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.compareDocumentPosition(org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  other)
          Compares the reference node, i.e.
 String sample code for java.lang.String definition code for java.lang.String getAttribute sample code for javax.imageio.metadata.IIOMetadataNode.getAttribute(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttribute(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Retrieves an attribute value by name.
 Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr getAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNode(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNode(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Retrieves an attribute node by name.
 Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr getAttributeNodeNS sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNodeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNodeNS(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  localName)
          Equivalent to getAttributeNode(localName).
 String sample code for java.lang.String definition code for java.lang.String getAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNS(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  localName)
          Equivalent to getAttribute(localName).
 NamedNodeMap sample code for org.w3c.dom.NamedNodeMap definition code for org.w3c.dom.NamedNodeMap getAttributes sample code for javax.imageio.metadata.IIOMetadataNode.getAttributes() definition code for javax.imageio.metadata.IIOMetadataNode.getAttributes() ()
          A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
 String sample code for java.lang.String definition code for java.lang.String getBaseURI sample code for javax.imageio.metadata.IIOMetadataNode.getBaseURI() definition code for javax.imageio.metadata.IIOMetadataNode.getBaseURI() ()
          The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.
 NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList getChildNodes sample code for javax.imageio.metadata.IIOMetadataNode.getChildNodes() definition code for javax.imageio.metadata.IIOMetadataNode.getChildNodes() ()
          A NodeList that contains all children of this node.
 NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList getElementsByTagName sample code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagName(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Returns a NodeList of all descendant Elements with a given tag name, in document order.
 NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList getElementsByTagNameNS sample code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagNameNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagNameNS(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  localName)
          Equivalent to getElementsByTagName(localName).
 Object sample code for java.lang.Object definition code for java.lang.Object getFeature sample code for javax.imageio.metadata.IIOMetadataNode.getFeature(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getFeature(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  feature, String sample code for java.lang.String definition code for java.lang.String  version)
          This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in .
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getFirstChild sample code for javax.imageio.metadata.IIOMetadataNode.getFirstChild() definition code for javax.imageio.metadata.IIOMetadataNode.getFirstChild() ()
          Returns the first child of this node, or null if the node has no children.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getLastChild sample code for javax.imageio.metadata.IIOMetadataNode.getLastChild() definition code for javax.imageio.metadata.IIOMetadataNode.getLastChild() ()
          Returns the last child of this node, or null if the node has no children.
 int getLength sample code for javax.imageio.metadata.IIOMetadataNode.getLength() definition code for javax.imageio.metadata.IIOMetadataNode.getLength() ()
          The number of nodes in the list.
 String sample code for java.lang.String definition code for java.lang.String getLocalName sample code for javax.imageio.metadata.IIOMetadataNode.getLocalName() definition code for javax.imageio.metadata.IIOMetadataNode.getLocalName() ()
          Equivalent to getNodeName.
 String sample code for java.lang.String definition code for java.lang.String getNamespaceURI sample code for javax.imageio.metadata.IIOMetadataNode.getNamespaceURI() definition code for javax.imageio.metadata.IIOMetadataNode.getNamespaceURI() ()
          Returns null, since namespaces are not supported.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getNextSibling sample code for javax.imageio.metadata.IIOMetadataNode.getNextSibling() definition code for javax.imageio.metadata.IIOMetadataNode.getNextSibling() ()
          Returns the next sibling of this node, or null if the node has no next sibling.
 String sample code for java.lang.String definition code for java.lang.String getNodeName sample code for javax.imageio.metadata.IIOMetadataNode.getNodeName() definition code for javax.imageio.metadata.IIOMetadataNode.getNodeName() ()
          Returns the node name associated with this node.
 short getNodeType sample code for javax.imageio.metadata.IIOMetadataNode.getNodeType() definition code for javax.imageio.metadata.IIOMetadataNode.getNodeType() ()
          Returns the node type, which is always ELEMENT_NODE.
 String sample code for java.lang.String definition code for java.lang.String getNodeValue sample code for javax.imageio.metadata.IIOMetadataNode.getNodeValue() definition code for javax.imageio.metadata.IIOMetadataNode.getNodeValue() ()
          The value of this node, depending on its type; see the table above.
 Document sample code for org.w3c.dom.Document definition code for org.w3c.dom.Document getOwnerDocument sample code for javax.imageio.metadata.IIOMetadataNode.getOwnerDocument() definition code for javax.imageio.metadata.IIOMetadataNode.getOwnerDocument() ()
          Returns null, since IIOMetadataNodes do not belong to any Document.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getParentNode sample code for javax.imageio.metadata.IIOMetadataNode.getParentNode() definition code for javax.imageio.metadata.IIOMetadataNode.getParentNode() ()
          Returns the parent of this node.
 String sample code for java.lang.String definition code for java.lang.String getPrefix sample code for javax.imageio.metadata.IIOMetadataNode.getPrefix() definition code for javax.imageio.metadata.IIOMetadataNode.getPrefix() ()
          Returns null, since namespaces are not supported.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getPreviousSibling sample code for javax.imageio.metadata.IIOMetadataNode.getPreviousSibling() definition code for javax.imageio.metadata.IIOMetadataNode.getPreviousSibling() ()
          Returns the previous sibling of this node, or null if this node has no previous sibling.
 TypeInfo sample code for org.w3c.dom.TypeInfo definition code for org.w3c.dom.TypeInfo getSchemaTypeInfo sample code for javax.imageio.metadata.IIOMetadataNode.getSchemaTypeInfo() definition code for javax.imageio.metadata.IIOMetadataNode.getSchemaTypeInfo() ()
          The type information associated with this element.
 String sample code for java.lang.String definition code for java.lang.String getTagName sample code for javax.imageio.metadata.IIOMetadataNode.getTagName() definition code for javax.imageio.metadata.IIOMetadataNode.getTagName() ()
          The name of the element.
 String sample code for java.lang.String definition code for java.lang.String getTextContent sample code for javax.imageio.metadata.IIOMetadataNode.getTextContent() definition code for javax.imageio.metadata.IIOMetadataNode.getTextContent() ()
          This attribute returns the text content of this node and its descendants.
 Object sample code for java.lang.Object definition code for java.lang.Object getUserData sample code for javax.imageio.metadata.IIOMetadataNode.getUserData(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getUserData(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  key)
          Retrieves the object associated to a key on a this node.
 Object sample code for java.lang.Object definition code for java.lang.Object getUserObject sample code for javax.imageio.metadata.IIOMetadataNode.getUserObject() definition code for javax.imageio.metadata.IIOMetadataNode.getUserObject() ()
          Returns the Object value associated with this node.
 boolean hasAttribute sample code for javax.imageio.metadata.IIOMetadataNode.hasAttribute(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.hasAttribute(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
 boolean hasAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.hasAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.hasAttributeNS(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  localName)
          Equivalent to hasAttribute(localName).
 boolean hasAttributes sample code for javax.imageio.metadata.IIOMetadataNode.hasAttributes() definition code for javax.imageio.metadata.IIOMetadataNode.hasAttributes() ()
          Returns whether this node (if it is an element) has any attributes.
 boolean hasChildNodes sample code for javax.imageio.metadata.IIOMetadataNode.hasChildNodes() definition code for javax.imageio.metadata.IIOMetadataNode.hasChildNodes() ()
          Returns true if this node has child nodes.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node insertBefore sample code for javax.imageio.metadata.IIOMetadataNode.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  newChild, Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  refChild)
          Inserts the node newChild before the existing child node refChild.
 boolean isDefaultNamespace sample code for javax.imageio.metadata.IIOMetadataNode.isDefaultNamespace(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.isDefaultNamespace(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI)
          This method checks if the specified namespaceURI is the default namespace or not.
 boolean isEqualNode sample code for javax.imageio.metadata.IIOMetadataNode.isEqualNode(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.isEqualNode(org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  node)
          Tests whether two nodes are equal.
 boolean isSameNode sample code for javax.imageio.metadata.IIOMetadataNode.isSameNode(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.isSameNode(org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  node)
          Returns whether this node is the same node as the given one.
 boolean isSupported sample code for javax.imageio.metadata.IIOMetadataNode.isSupported(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.isSupported(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  feature, String sample code for java.lang.String definition code for java.lang.String  version)
          Returns false since DOM features are not supported.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node item sample code for javax.imageio.metadata.IIOMetadataNode.item(int) definition code for javax.imageio.metadata.IIOMetadataNode.item(int) (int index)
          Returns the indexth item in the collection.
 String sample code for java.lang.String definition code for java.lang.String lookupNamespaceURI sample code for javax.imageio.metadata.IIOMetadataNode.lookupNamespaceURI(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.lookupNamespaceURI(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  prefix)
          Look up the namespace URI associated to the given prefix, starting from this node.
 String sample code for java.lang.String definition code for java.lang.String lookupPrefix sample code for javax.imageio.metadata.IIOMetadataNode.lookupPrefix(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.lookupPrefix(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI)
          Look up the prefix associated to the given namespace URI, starting from this node.
 void normalize sample code for javax.imageio.metadata.IIOMetadataNode.normalize() definition code for javax.imageio.metadata.IIOMetadataNode.normalize() ()
          Does nothing, since IIOMetadataNodes do not contain Text children.
 void removeAttribute sample code for javax.imageio.metadata.IIOMetadataNode.removeAttribute(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.removeAttribute(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Removes an attribute by name.
 Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr removeAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNode(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNode(org.w3c.dom.Attr) (Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  oldAttr)
          Removes the specified attribute node.
 void removeAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNS(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  localName)
          Equivalent to removeAttribute(localName).
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node removeChild sample code for javax.imageio.metadata.IIOMetadataNode.removeChild(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.removeChild(org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  oldChild)
          Removes the child node indicated by oldChild from the list of children, and returns it.
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node replaceChild sample code for javax.imageio.metadata.IIOMetadataNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) (Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  newChild, Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  oldChild)
          Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
 void setAttribute sample code for javax.imageio.metadata.IIOMetadataNode.setAttribute(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setAttribute(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  value)
          Adds a new attribute.
 Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr setAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNode(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNode(org.w3c.dom.Attr) (Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  newAttr)
          Adds a new attribute node.
 Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr setAttributeNodeNS sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNodeNS(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNodeNS(org.w3c.dom.Attr) (Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  newAttr)
          Equivalent to setAttributeNode(newAttr).
 void setAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  qualifiedName, String sample code for java.lang.String definition code for java.lang.String  value)
          Equivalent to setAttribute(qualifiedName, value).
 void setIdAttribute sample code for javax.imageio.metadata.IIOMetadataNode.setIdAttribute(java.lang.String, boolean) definition code for javax.imageio.metadata.IIOMetadataNode.setIdAttribute(java.lang.String, boolean) (String sample code for java.lang.String definition code for java.lang.String  name, boolean isId)
          If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
 void setIdAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNode(org.w3c.dom.Attr, boolean) definition code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNode(org.w3c.dom.Attr, boolean) (Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  idAttr, boolean isId)
          If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
 void setIdAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNS(java.lang.String, java.lang.String, boolean) definition code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNS(java.lang.String, java.lang.String, boolean) (String sample code for java.lang.String definition code for java.lang.String  namespaceURI, String sample code for java.lang.String definition code for java.lang.String  localName, boolean isId)
          If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute .
 void setNodeValue sample code for javax.imageio.metadata.IIOMetadataNode.setNodeValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setNodeValue(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  nodeValue)
          The value of this node, depending on its type; see the table above.
 void setPrefix sample code for javax.imageio.metadata.IIOMetadataNode.setPrefix(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setPrefix(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  prefix)
          Does nothing, since namespaces are not supported.
 void setTextContent sample code for javax.imageio.metadata.IIOMetadataNode.setTextContent(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setTextContent(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  textContent)
          This attribute returns the text content of this node and its descendants.
 Object sample code for java.lang.Object definition code for java.lang.Object setUserData sample code for javax.imageio.metadata.IIOMetadataNode.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) definition code for javax.imageio.metadata.IIOMetadataNode.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) (String sample code for java.lang.String definition code for java.lang.String  key, Object sample code for java.lang.Object definition code for java.lang.Object  data, UserDataHandler sample code for org.w3c.dom.UserDataHandler definition code for org.w3c.dom.UserDataHandler  handler)
          Associate an object to a key on this node.
 void setUserObject sample code for javax.imageio.metadata.IIOMetadataNode.setUserObject(java.lang.Object) definition code for javax.imageio.metadata.IIOMetadataNode.setUserObject(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  userObject)
          Sets the value associated with this node.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

IIOMetadataNode sample code for javax.imageio.metadata.IIOMetadataNode() definition code for javax.imageio.metadata.IIOMetadataNode()

public IIOMetadataNode()
Constructs an empty IIOMetadataNode.


IIOMetadataNode sample code for javax.imageio.metadata.IIOMetadataNode(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode(java.lang.String)

public IIOMetadataNode(String sample code for java.lang.String definition code for java.lang.String  nodeName)
Constructs an IIOMetadataNode with a given node name.

Parameters:
nodeName - the name of the node, as a String.
Method Detail

getNodeName sample code for javax.imageio.metadata.IIOMetadataNode.getNodeName() definition code for javax.imageio.metadata.IIOMetadataNode.getNodeName()

public String sample code for java.lang.String definition code for java.lang.String  getNodeName()
Returns the node name associated with this node.

Specified by:
getNodeName sample code for org.w3c.dom.Node.getNodeName() definition code for org.w3c.dom.Node.getNodeName() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the node name, as a String.

getNodeValue sample code for javax.imageio.metadata.IIOMetadataNode.getNodeValue() definition code for javax.imageio.metadata.IIOMetadataNode.getNodeValue()

public String sample code for java.lang.String definition code for java.lang.String  getNodeValue()
                    throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Node sample code for org.w3c.dom.Node.getNodeValue() definition code for org.w3c.dom.Node.getNodeValue()
The value of this node, depending on its type; see the table above. When it is defined to be null, setting it has no effect, including if the node is read-only.

Specified by:
getNodeValue sample code for org.w3c.dom.Node.getNodeValue() definition code for org.w3c.dom.Node.getNodeValue() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.

setNodeValue sample code for javax.imageio.metadata.IIOMetadataNode.setNodeValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setNodeValue(java.lang.String)

public void setNodeValue(String sample code for java.lang.String definition code for java.lang.String  nodeValue)
                  throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Node sample code for org.w3c.dom.Node.setNodeValue(java.lang.String) definition code for org.w3c.dom.Node.setNodeValue(java.lang.String)
The value of this node, depending on its type; see the table above. When it is defined to be null, setting it has no effect, including if the node is read-only.

Specified by:
setNodeValue sample code for org.w3c.dom.Node.setNodeValue(java.lang.String) definition code for org.w3c.dom.Node.setNodeValue(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly and if it is not defined to be null.

getNodeType sample code for javax.imageio.metadata.IIOMetadataNode.getNodeType() definition code for javax.imageio.metadata.IIOMetadataNode.getNodeType()

public short getNodeType()
Returns the node type, which is always ELEMENT_NODE.

Specified by:
getNodeType sample code for org.w3c.dom.Node.getNodeType() definition code for org.w3c.dom.Node.getNodeType() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the short value ELEMENT_NODE.

getParentNode sample code for javax.imageio.metadata.IIOMetadataNode.getParentNode() definition code for javax.imageio.metadata.IIOMetadataNode.getParentNode()

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getParentNode()
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.

Specified by:
getParentNode sample code for org.w3c.dom.Node.getParentNode() definition code for org.w3c.dom.Node.getParentNode() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the parent, as a Node.
See Also:
insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadataNode.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) , replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadataNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) , appendChild(org.w3c.dom.Node) sample code for javax.imageio.metadata.IIOMetadataNode.appendChild(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.appendChild(org.w3c.dom.Node)

getChildNodes sample code for javax.imageio.metadata.IIOMetadataNode.getChildNodes() definition code for javax.imageio.metadata.IIOMetadataNode.getChildNodes()

public NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList  getChildNodes()
Description copied from interface: Node sample code for org.w3c.dom.Node.getChildNodes() definition code for org.w3c.dom.Node.getChildNodes()
A NodeList that contains all children of this node. If there are no children, this is a NodeList containing no nodes.

Specified by:
getChildNodes sample code for org.w3c.dom.Node.getChildNodes() definition code for org.w3c.dom.Node.getChildNodes() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node

getFirstChild sample code for javax.imageio.metadata.IIOMetadataNode.getFirstChild() definition code for javax.imageio.metadata.IIOMetadataNode.getFirstChild()

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getFirstChild()
Returns the first child of this node, or null if the node has no children.

Specified by:
getFirstChild sample code for org.w3c.dom.Node.getFirstChild() definition code for org.w3c.dom.Node.getFirstChild() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the first child, as a Node, or null

getLastChild sample code for javax.imageio.metadata.IIOMetadataNode.getLastChild() definition code for javax.imageio.metadata.IIOMetadataNode.getLastChild()

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getLastChild()
Returns the last child of this node, or null if the node has no children.

Specified by:
getLastChild sample code for org.w3c.dom.Node.getLastChild() definition code for org.w3c.dom.Node.getLastChild() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the last child, as a Node, or null.

getPreviousSibling sample code for javax.imageio.metadata.IIOMetadataNode.getPreviousSibling() definition code for javax.imageio.metadata.IIOMetadataNode.getPreviousSibling()

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getPreviousSibling()
Returns the previous sibling of this node, or null if this node has no previous sibling.

Specified by:
getPreviousSibling sample code for org.w3c.dom.Node.getPreviousSibling() definition code for org.w3c.dom.Node.getPreviousSibling() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the previous sibling, as a Node, or null.

getNextSibling sample code for javax.imageio.metadata.IIOMetadataNode.getNextSibling() definition code for javax.imageio.metadata.IIOMetadataNode.getNextSibling()

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getNextSibling()
Returns the next sibling of this node, or null if the node has no next sibling.

Specified by:
getNextSibling sample code for org.w3c.dom.Node.getNextSibling() definition code for org.w3c.dom.Node.getNextSibling() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the next sibling, as a Node, or null.

getAttributes sample code for javax.imageio.metadata.IIOMetadataNode.getAttributes() definition code for javax.imageio.metadata.IIOMetadataNode.getAttributes()

public NamedNodeMap sample code for org.w3c.dom.NamedNodeMap definition code for org.w3c.dom.NamedNodeMap  getAttributes()
Description copied from interface: Node sample code for org.w3c.dom.Node.getAttributes() definition code for org.w3c.dom.Node.getAttributes()
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.

Specified by:
getAttributes sample code for org.w3c.dom.Node.getAttributes() definition code for org.w3c.dom.Node.getAttributes() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node

getOwnerDocument sample code for javax.imageio.metadata.IIOMetadataNode.getOwnerDocument() definition code for javax.imageio.metadata.IIOMetadataNode.getOwnerDocument()

public Document sample code for org.w3c.dom.Document definition code for org.w3c.dom.Document  getOwnerDocument()
Returns null, since IIOMetadataNodes do not belong to any Document.

Specified by:
getOwnerDocument sample code for org.w3c.dom.Node.getOwnerDocument() definition code for org.w3c.dom.Node.getOwnerDocument() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
null.

insertBefore sample code for javax.imageio.metadata.IIOMetadataNode.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  insertBefore(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  newChild,
                         Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  refChild)
Inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Specified by:
insertBefore sample code for org.w3c.dom.Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) definition code for org.w3c.dom.Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
newChild - the Node to insert.
refChild - the reference Node.
Returns:
the node being inserted.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if newChild is null.

replaceChild sample code for javax.imageio.metadata.IIOMetadataNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  replaceChild(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  newChild,
                         Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  oldChild)
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Specified by:
replaceChild sample code for org.w3c.dom.Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) definition code for org.w3c.dom.Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
newChild - the Node to insert.
oldChild - the Node to be replaced.
Returns:
the node replaced.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if newChild is null.

removeChild sample code for javax.imageio.metadata.IIOMetadataNode.removeChild(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.removeChild(org.w3c.dom.Node)

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  removeChild(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  oldChild)
Removes the child node indicated by oldChild from the list of children, and returns it.

Specified by:
removeChild sample code for org.w3c.dom.Node.removeChild(org.w3c.dom.Node) definition code for org.w3c.dom.Node.removeChild(org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
oldChild - the Node to be removed.
Returns:
the node removed.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if oldChild is null.

appendChild sample code for javax.imageio.metadata.IIOMetadataNode.appendChild(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.appendChild(org.w3c.dom.Node)

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  appendChild(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  newChild)
Adds the node newChild to the end of the list of children of this node.

Specified by:
appendChild sample code for org.w3c.dom.Node.appendChild(org.w3c.dom.Node) definition code for org.w3c.dom.Node.appendChild(org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
newChild - the Node to insert.
Returns:
the node added.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if newChild is null.

hasChildNodes sample code for javax.imageio.metadata.IIOMetadataNode.hasChildNodes() definition code for javax.imageio.metadata.IIOMetadataNode.hasChildNodes()

public boolean hasChildNodes()
Returns true if this node has child nodes.

Specified by:
hasChildNodes sample code for org.w3c.dom.Node.hasChildNodes() definition code for org.w3c.dom.Node.hasChildNodes() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
true if this node has children.

cloneNode sample code for javax.imageio.metadata.IIOMetadataNode.cloneNode(boolean) definition code for javax.imageio.metadata.IIOMetadataNode.cloneNode(boolean)

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  cloneNode(boolean deep)
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.

Specified by:
cloneNode sample code for org.w3c.dom.Node.cloneNode(boolean) definition code for org.w3c.dom.Node.cloneNode(boolean) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
deep - if true, recursively clone the subtree under the specified node; if false, clone only the node itself.
Returns:
the duplicate node.

normalize sample code for javax.imageio.metadata.IIOMetadataNode.normalize() definition code for javax.imageio.metadata.IIOMetadataNode.normalize()

public void normalize()
Does nothing, since IIOMetadataNodes do not contain Text children.

Specified by:
normalize sample code for org.w3c.dom.Node.normalize() definition code for org.w3c.dom.Node.normalize() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node

isSupported sample code for javax.imageio.metadata.IIOMetadataNode.isSupported(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.isSupported(java.lang.String, java.lang.String)

public boolean isSupported(String sample code for java.lang.String definition code for java.lang.String  feature,
                           String sample code for java.lang.String definition code for java.lang.String  version)
Returns false since DOM features are not supported.

Specified by:
isSupported sample code for org.w3c.dom.Node.isSupported(java.lang.String, java.lang.String) definition code for org.w3c.dom.Node.isSupported(java.lang.String, java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
feature - a String, which is ignored.
version - a String, which is ignored.
Returns:
false.

getNamespaceURI sample code for javax.imageio.metadata.IIOMetadataNode.getNamespaceURI() definition code for javax.imageio.metadata.IIOMetadataNode.getNamespaceURI()

public String sample code for java.lang.String definition code for java.lang.String  getNamespaceURI()
                       throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Returns null, since namespaces are not supported.

Specified by:
getNamespaceURI sample code for org.w3c.dom.Node.getNamespaceURI() definition code for org.w3c.dom.Node.getNamespaceURI() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException

getPrefix sample code for javax.imageio.metadata.IIOMetadataNode.getPrefix() definition code for javax.imageio.metadata.IIOMetadataNode.getPrefix()

public String sample code for java.lang.String definition code for java.lang.String  getPrefix()
Returns null, since namespaces are not supported.

Specified by:
getPrefix sample code for org.w3c.dom.Node.getPrefix() definition code for org.w3c.dom.Node.getPrefix() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
null.
See Also:
setPrefix(java.lang.String) sample code for javax.imageio.metadata.IIOMetadataNode.setPrefix(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setPrefix(java.lang.String)

setPrefix sample code for javax.imageio.metadata.IIOMetadataNode.setPrefix(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setPrefix(java.lang.String)

public void setPrefix(String sample code for java.lang.String definition code for java.lang.String  prefix)
Does nothing, since namespaces are not supported.

Specified by:
setPrefix sample code for org.w3c.dom.Node.setPrefix(java.lang.String) definition code for org.w3c.dom.Node.setPrefix(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
prefix - a String, which is ignored.
See Also:
getPrefix() sample code for javax.imageio.metadata.IIOMetadataNode.getPrefix() definition code for javax.imageio.metadata.IIOMetadataNode.getPrefix()

getLocalName sample code for javax.imageio.metadata.IIOMetadataNode.getLocalName() definition code for javax.imageio.metadata.IIOMetadataNode.getLocalName()

public String sample code for java.lang.String definition code for java.lang.String  getLocalName()
Equivalent to getNodeName.

Specified by:
getLocalName sample code for org.w3c.dom.Node.getLocalName() definition code for org.w3c.dom.Node.getLocalName() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
the node name, as a String.

getTagName sample code for javax.imageio.metadata.IIOMetadataNode.getTagName() definition code for javax.imageio.metadata.IIOMetadataNode.getTagName()

public String sample code for java.lang.String definition code for java.lang.String  getTagName()
Description copied from interface: Element sample code for org.w3c.dom.Element.getTagName() definition code for org.w3c.dom.Element.getTagName()
The name of the element. If Node.localName is different from null, this attribute is a qualified name. For example, in:
 <elementExample id="demo"> ... 
 </elementExample> , 
tagName has the value "elementExample". Note that this is case-preserving in XML, as are all of the operations of the DOM. The HTML DOM returns the tagName of an HTML element in the canonical uppercase form, regardless of the case in the source HTML document.

Specified by:
getTagName sample code for org.w3c.dom.Element.getTagName() definition code for org.w3c.dom.Element.getTagName() in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element

getAttribute sample code for javax.imageio.metadata.IIOMetadataNode.getAttribute(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttribute(java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  getAttribute(String sample code for java.lang.String definition code for java.lang.String  name)
Description copied from interface: Element sample code for org.w3c.dom.Element.getAttribute(java.lang.String) definition code for org.w3c.dom.Element.getAttribute(java.lang.String)
Retrieves an attribute value by name.

Specified by:
getAttribute sample code for org.w3c.dom.Element.getAttribute(java.lang.String) definition code for org.w3c.dom.Element.getAttribute(java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name of the attribute to retrieve.
Returns:
The Attr value as a string, or the empty string if that attribute does not have a specified or default value.

getAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNS(java.lang.String, java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  getAttributeNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                             String sample code for java.lang.String definition code for java.lang.String  localName)
Equivalent to getAttribute(localName).

Specified by:
getAttributeNS sample code for org.w3c.dom.Element.getAttributeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.getAttributeNS(java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the attribute to retrieve.
localName - The local name of the attribute to retrieve.
Returns:
The Attr value as a string, or the empty string if that attribute does not have a specified or default value.
See Also:
setAttributeNS(java.lang.String, java.lang.String, java.lang.String) sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)

setAttribute sample code for javax.imageio.metadata.IIOMetadataNode.setAttribute(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setAttribute(java.lang.String, java.lang.String)

public void setAttribute(String sample code for java.lang.String definition code for java.lang.String  name,
                         String sample code for java.lang.String definition code for java.lang.String  value)
Description copied from interface: Element sample code for org.w3c.dom.Element.setAttribute(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.setAttribute(java.lang.String, java.lang.String)
Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. This value is a simple string; it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. In order to assign an attribute value that contains entity references, the user must create an Attr node plus any Text and EntityReference nodes, build the appropriate subtree, and use setAttributeNode to assign it as the value of an attribute.
To set an attribute with a qualified name and namespace URI, use the setAttributeNS method.

Specified by:
setAttribute sample code for org.w3c.dom.Element.setAttribute(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.setAttribute(java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name of the attribute to create or alter.
value - Value to set in string form.

setAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)

public void setAttributeNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                           String sample code for java.lang.String definition code for java.lang.String  qualifiedName,
                           String sample code for java.lang.String definition code for java.lang.String  value)
Equivalent to setAttribute(qualifiedName, value).

Specified by:
setAttributeNS sample code for org.w3c.dom.Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the attribute to create or alter.
qualifiedName - The qualified name of the attribute to create or alter.
value - The value to set in string form.
See Also:
getAttributeNS(java.lang.String, java.lang.String) sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNS(java.lang.String, java.lang.String)

removeAttribute sample code for javax.imageio.metadata.IIOMetadataNode.removeAttribute(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.removeAttribute(java.lang.String)

public void removeAttribute(String sample code for java.lang.String definition code for java.lang.String  name)
Description copied from interface: Element sample code for org.w3c.dom.Element.removeAttribute(java.lang.String) definition code for org.w3c.dom.Element.removeAttribute(java.lang.String)
Removes an attribute by name. If a default value for the removed attribute is defined in the DTD, a new attribute immediately appears with the default value as well as the corresponding namespace URI, local name, and prefix when applicable. The implementation may handle default values from other schemas similarly but applications should use Document.normalizeDocument() to guarantee this information is up-to-date.
If no attribute with this name is found, this method has no effect.
To remove an attribute by local name and namespace URI, use the removeAttributeNS method.

Specified by:
removeAttribute sample code for org.w3c.dom.Element.removeAttribute(java.lang.String) definition code for org.w3c.dom.Element.removeAttribute(java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name of the attribute to remove.

removeAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNS(java.lang.String, java.lang.String)

public void removeAttributeNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                              String sample code for java.lang.String definition code for java.lang.String  localName)
Equivalent to removeAttribute(localName).

Specified by:
removeAttributeNS sample code for org.w3c.dom.Element.removeAttributeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.removeAttributeNS(java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the attribute to remove.
localName - The local name of the attribute to remove.

getAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNode(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNode(java.lang.String)

public Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  getAttributeNode(String sample code for java.lang.String definition code for java.lang.String  name)
Description copied from interface: Element sample code for org.w3c.dom.Element.getAttributeNode(java.lang.String) definition code for org.w3c.dom.Element.getAttributeNode(java.lang.String)
Retrieves an attribute node by name.
To retrieve an attribute node by qualified name and namespace URI, use the getAttributeNodeNS method.

Specified by:
getAttributeNode sample code for org.w3c.dom.Element.getAttributeNode(java.lang.String) definition code for org.w3c.dom.Element.getAttributeNode(java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name (nodeName) of the attribute to retrieve.
Returns:
The Attr node with the specified name ( nodeName) or null if there is no such attribute.

getAttributeNodeNS sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNodeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNodeNS(java.lang.String, java.lang.String)

public Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  getAttributeNodeNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                               String sample code for java.lang.String definition code for java.lang.String  localName)
Equivalent to getAttributeNode(localName).

Specified by:
getAttributeNodeNS sample code for org.w3c.dom.Element.getAttributeNodeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.getAttributeNodeNS(java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the attribute to retrieve.
localName - The local name of the attribute to retrieve.
Returns:
The Attr node with the specified attribute local name and namespace URI or null if there is no such attribute.
See Also:
setAttributeNodeNS(org.w3c.dom.Attr) sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNodeNS(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNodeNS(org.w3c.dom.Attr)

setAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNode(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNode(org.w3c.dom.Attr)

public Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  setAttributeNode(Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  newAttr)
                      throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Element sample code for org.w3c.dom.Element.setAttributeNode(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.setAttributeNode(org.w3c.dom.Attr)
Adds a new attribute node. If an attribute with that name ( nodeName) is already present in the element, it is replaced by the new one. Replacing an attribute node by itself has no effect.
To add a new attribute node with a qualified name and namespace URI, use the setAttributeNodeNS method.

Specified by:
setAttributeNode sample code for org.w3c.dom.Element.setAttributeNode(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.setAttributeNode(org.w3c.dom.Attr) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
newAttr - The Attr node to add to the attribute list.
Returns:
If the newAttr attribute replaces an existing attribute, the replaced Attr node is returned, otherwise null is returned.
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.

setAttributeNodeNS sample code for javax.imageio.metadata.IIOMetadataNode.setAttributeNodeNS(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.setAttributeNodeNS(org.w3c.dom.Attr)

public Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  setAttributeNodeNS(Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  newAttr)
Equivalent to setAttributeNode(newAttr).

Specified by:
setAttributeNodeNS sample code for org.w3c.dom.Element.setAttributeNodeNS(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.setAttributeNodeNS(org.w3c.dom.Attr) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
newAttr - The Attr node to add to the attribute list.
Returns:
If the newAttr attribute replaces an existing attribute with the same local name and namespace URI, the replaced Attr node is returned, otherwise null is returned.
See Also:
getAttributeNodeNS(java.lang.String, java.lang.String) sample code for javax.imageio.metadata.IIOMetadataNode.getAttributeNodeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getAttributeNodeNS(java.lang.String, java.lang.String)

removeAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNode(org.w3c.dom.Attr) definition code for javax.imageio.metadata.IIOMetadataNode.removeAttributeNode(org.w3c.dom.Attr)

public Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  removeAttributeNode(Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  oldAttr)
Description copied from interface: Element sample code for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr)
Removes the specified attribute node. If a default value for the removed Attr node is defined in the DTD, a new node immediately appears with the default value as well as the corresponding namespace URI, local name, and prefix when applicable. The implementation may handle default values from other schemas similarly but applications should use Document.normalizeDocument() to guarantee this information is up-to-date.

Specified by:
removeAttributeNode sample code for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
oldAttr - The Attr node to remove from the attribute list.
Returns:
The Attr node that was removed.

getElementsByTagName sample code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagName(java.lang.String)

public NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList  getElementsByTagName(String sample code for java.lang.String definition code for java.lang.String  name)
Description copied from interface: Element sample code for org.w3c.dom.Element.getElementsByTagName(java.lang.String) definition code for org.w3c.dom.Element.getElementsByTagName(java.lang.String)
Returns a NodeList of all descendant Elements with a given tag name, in document order.

Specified by:
getElementsByTagName sample code for org.w3c.dom.Element.getElementsByTagName(java.lang.String) definition code for org.w3c.dom.Element.getElementsByTagName(java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name of the tag to match on. The special value "*" matches all tags.
Returns:
A list of matching Element nodes.

getElementsByTagNameNS sample code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagNameNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getElementsByTagNameNS(java.lang.String, java.lang.String)

public NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList  getElementsByTagNameNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                                       String sample code for java.lang.String definition code for java.lang.String  localName)
Equivalent to getElementsByTagName(localName).

Specified by:
getElementsByTagNameNS sample code for org.w3c.dom.Element.getElementsByTagNameNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.getElementsByTagNameNS(java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the elements to match on. The special value "*" matches all namespaces.
localName - The local name of the elements to match on. The special value "*" matches all local names.
Returns:
A new NodeList object containing all the matched Elements.

hasAttributes sample code for javax.imageio.metadata.IIOMetadataNode.hasAttributes() definition code for javax.imageio.metadata.IIOMetadataNode.hasAttributes()

public boolean hasAttributes()
Description copied from interface: Node sample code for org.w3c.dom.Node.hasAttributes() definition code for org.w3c.dom.Node.hasAttributes()
Returns whether this node (if it is an element) has any attributes.

Specified by:
hasAttributes sample code for org.w3c.dom.Node.hasAttributes() definition code for org.w3c.dom.Node.hasAttributes() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Returns:
Returns true if this node has any attributes, false otherwise.

hasAttribute sample code for javax.imageio.metadata.IIOMetadataNode.hasAttribute(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.hasAttribute(java.lang.String)

public boolean hasAttribute(String sample code for java.lang.String definition code for java.lang.String  name)
Description copied from interface: Element sample code for org.w3c.dom.Element.hasAttribute(java.lang.String) definition code for org.w3c.dom.Element.hasAttribute(java.lang.String)
Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

Specified by:
hasAttribute sample code for org.w3c.dom.Element.hasAttribute(java.lang.String) definition code for org.w3c.dom.Element.hasAttribute(java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name of the attribute to look for.
Returns:
true if an attribute with the given name is specified on this element or has a default value, false otherwise.

hasAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.hasAttributeNS(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.hasAttributeNS(java.lang.String, java.lang.String)

public boolean hasAttributeNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                              String sample code for java.lang.String definition code for java.lang.String  localName)
Equivalent to hasAttribute(localName).

Specified by:
hasAttributeNS sample code for org.w3c.dom.Element.hasAttributeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.hasAttributeNS(java.lang.String, java.lang.String) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the attribute to look for.
localName - The local name of the attribute to look for.
Returns:
true if an attribute with the given local name and namespace URI is specified or has a default value on this element, false otherwise.

getLength sample code for javax.imageio.metadata.IIOMetadataNode.getLength() definition code for javax.imageio.metadata.IIOMetadataNode.getLength()

public int getLength()
Description copied from interface: NodeList sample code for org.w3c.dom.NodeList.getLength() definition code for org.w3c.dom.NodeList.getLength()
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.

Specified by:
getLength sample code for org.w3c.dom.NodeList.getLength() definition code for org.w3c.dom.NodeList.getLength() in interface NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList

item sample code for javax.imageio.metadata.IIOMetadataNode.item(int) definition code for javax.imageio.metadata.IIOMetadataNode.item(int)

public Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  item(int index)
Description copied from interface: NodeList sample code for org.w3c.dom.NodeList.item(int) definition code for org.w3c.dom.NodeList.item(int)
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Specified by:
item sample code for org.w3c.dom.NodeList.item(int) definition code for org.w3c.dom.NodeList.item(int) in interface NodeList sample code for org.w3c.dom.NodeList definition code for org.w3c.dom.NodeList
Parameters:
index - Index into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

getUserObject sample code for javax.imageio.metadata.IIOMetadataNode.getUserObject() definition code for javax.imageio.metadata.IIOMetadataNode.getUserObject()

public Object sample code for java.lang.Object definition code for java.lang.Object  getUserObject()
Returns the Object value associated with this node.

Returns:
the user Object.
See Also:
setUserObject(java.lang.Object) sample code for javax.imageio.metadata.IIOMetadataNode.setUserObject(java.lang.Object) definition code for javax.imageio.metadata.IIOMetadataNode.setUserObject(java.lang.Object)

setUserObject sample code for javax.imageio.metadata.IIOMetadataNode.setUserObject(java.lang.Object) definition code for javax.imageio.metadata.IIOMetadataNode.setUserObject(java.lang.Object)

public void setUserObject(Object sample code for java.lang.Object definition code for java.lang.Object  userObject)
Sets the value associated with this node.

Parameters:
userObject - the user Object.
See Also:
getUserObject() sample code for javax.imageio.metadata.IIOMetadataNode.getUserObject() definition code for javax.imageio.metadata.IIOMetadataNode.getUserObject()

setIdAttribute sample code for javax.imageio.metadata.IIOMetadataNode.setIdAttribute(java.lang.String, boolean) definition code for javax.imageio.metadata.IIOMetadataNode.setIdAttribute(java.lang.String, boolean)

public void setIdAttribute(String sample code for java.lang.String definition code for java.lang.String  name,
                           boolean isId)
                    throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Element sample code for org.w3c.dom.Element.setIdAttribute(java.lang.String, boolean) definition code for org.w3c.dom.Element.setIdAttribute(java.lang.String, boolean)
If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute . This affects the value of Attr.isId and the behavior of Document.getElementById, but does not change any schema that may be in use, in particular this does not affect the Attr.schemaTypeInfo of the specified Attr node. Use the value false for the parameter isId to undeclare an attribute for being a user-determined ID attribute.
To specify an attribute by local name and namespace URI, use the setIdAttributeNS method.

Specified by:
setIdAttribute sample code for org.w3c.dom.Element.setIdAttribute(java.lang.String, boolean) definition code for org.w3c.dom.Element.setIdAttribute(java.lang.String, boolean) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
name - The name of the attribute.
isId - Whether the attribute is a of type ID.
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if the specified node is not an attribute of this element.

setIdAttributeNS sample code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNS(java.lang.String, java.lang.String, boolean) definition code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNS(java.lang.String, java.lang.String, boolean)

public void setIdAttributeNS(String sample code for java.lang.String definition code for java.lang.String  namespaceURI,
                             String sample code for java.lang.String definition code for java.lang.String  localName,
                             boolean isId)
                      throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Element sample code for org.w3c.dom.Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean) definition code for org.w3c.dom.Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean)
If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute . This affects the value of Attr.isId and the behavior of Document.getElementById, but does not change any schema that may be in use, in particular this does not affect the Attr.schemaTypeInfo of the specified Attr node. Use the value false for the parameter isId to undeclare an attribute for being a user-determined ID attribute.

Specified by:
setIdAttributeNS sample code for org.w3c.dom.Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean) definition code for org.w3c.dom.Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
namespaceURI - The namespace URI of the attribute.
localName - The local name of the attribute.
isId - Whether the attribute is a of type ID.
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if the specified node is not an attribute of this element.

setIdAttributeNode sample code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNode(org.w3c.dom.Attr, boolean) definition code for javax.imageio.metadata.IIOMetadataNode.setIdAttributeNode(org.w3c.dom.Attr, boolean)

public void setIdAttributeNode(Attr sample code for org.w3c.dom.Attr definition code for org.w3c.dom.Attr  idAttr,
                               boolean isId)
                        throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Element sample code for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean) definition code for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean)
If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute . This affects the value of Attr.isId and the behavior of Document.getElementById, but does not change any schema that may be in use, in particular this does not affect the Attr.schemaTypeInfo of the specified Attr node. Use the value false for the parameter isId to undeclare an attribute for being a user-determined ID attribute.

Specified by:
setIdAttributeNode sample code for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean) definition code for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean) in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
Parameters:
idAttr - The attribute node.
isId - Whether the attribute is a of type ID.
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if the specified node is not an attribute of this element.

getSchemaTypeInfo sample code for javax.imageio.metadata.IIOMetadataNode.getSchemaTypeInfo() definition code for javax.imageio.metadata.IIOMetadataNode.getSchemaTypeInfo()

public TypeInfo sample code for org.w3c.dom.TypeInfo definition code for org.w3c.dom.TypeInfo  getSchemaTypeInfo()
Description copied from interface: Element sample code for org.w3c.dom.Element.getSchemaTypeInfo() definition code for org.w3c.dom.Element.getSchemaTypeInfo()
The type information associated with this element.

Specified by:
getSchemaTypeInfo sample code for org.w3c.dom.Element.getSchemaTypeInfo() definition code for org.w3c.dom.Element.getSchemaTypeInfo() in interface Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element

setUserData sample code for javax.imageio.metadata.IIOMetadataNode.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) definition code for javax.imageio.metadata.IIOMetadataNode.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)

public Object sample code for java.lang.Object definition code for java.lang.Object  setUserData(String sample code for java.lang.String definition code for java.lang.String  key,
                          Object sample code for java.lang.Object definition code for java.lang.Object  data,
                          UserDataHandler sample code for org.w3c.dom.UserDataHandler definition code for org.w3c.dom.UserDataHandler  handler)
Description copied from interface: Node sample code for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) definition code for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
Associate an object to a key on this node. The object can later be retrieved from this node by calling getUserData with the same key.

Specified by:
setUserData sample code for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) definition code for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
key - The key to associate the object to.
data - The object to associate to the given key, or null to remove any existing association to that key.
handler - The handler to associate to that key, or null.
Returns:
Returns the DOMUserData previously associated to the given key on this node, or null if there was none.

getUserData sample code for javax.imageio.metadata.IIOMetadataNode.getUserData(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getUserData(java.lang.String)

public Object sample code for java.lang.Object definition code for java.lang.Object  getUserData(String sample code for java.lang.String definition code for java.lang.String  key)
Description copied from interface: Node sample code for org.w3c.dom.Node.getUserData(java.lang.String) definition code for org.w3c.dom.Node.getUserData(java.lang.String)
Retrieves the object associated to a key on a this node. The object must first have been set to this node by calling setUserData with the same key.

Specified by:
getUserData sample code for org.w3c.dom.Node.getUserData(java.lang.String) definition code for org.w3c.dom.Node.getUserData(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
key - The key the object is associated to.
Returns:
Returns the DOMUserData associated to the given key on this node, or null if there was none.

getFeature sample code for javax.imageio.metadata.IIOMetadataNode.getFeature(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.getFeature(java.lang.String, java.lang.String)

public Object sample code for java.lang.Object definition code for java.lang.Object  getFeature(String sample code for java.lang.String definition code for java.lang.String  feature,
                         String sample code for java.lang.String definition code for java.lang.String  version)
Description copied from interface: Node sample code for org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String) definition code for org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String)
This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in . The specialized object may also be obtained by using binding-specific casting methods but is not necessarily expected to, as discussed in . This method also allow the implementation to provide specialized objects which do not support the Node interface.

Specified by:
getFeature sample code for org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String) definition code for org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
feature - The name of the feature requested. Note that any plus sign "+" prepended to the name of the feature will be ignored since it is not significant in the context of this method.
version - This is the version number of the feature to test.
Returns:
Returns an object which implements the specialized APIs of the specified feature and version, if any, or null if there is no object which implements interfaces associated with that feature. If the DOMObject returned by this method implements the Node interface, it must delegate to the primary core Node and not return results inconsistent with the primary core Node such as attributes, childNodes, etc.

isSameNode sample code for javax.imageio.metadata.IIOMetadataNode.isSameNode(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.isSameNode(org.w3c.dom.Node)

public boolean isSameNode(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  node)
Description copied from interface: Node sample code for org.w3c.dom.Node.isSameNode(org.w3c.dom.Node) definition code for org.w3c.dom.Node.isSameNode(org.w3c.dom.Node)
Returns whether this node is the same node as the given one.
This method provides a way to determine whether two Node references returned by the implementation reference the same object. When two Node references are references to the same object, even if through a proxy, the references may be used completely interchangeably, such that all attributes have the same values and calling the same DOM method on either reference always has exactly the same effect.

Specified by:
isSameNode sample code for org.w3c.dom.Node.isSameNode(org.w3c.dom.Node) definition code for org.w3c.dom.Node.isSameNode(org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
node - The node to test against.
Returns:
Returns true if the nodes are the same, false otherwise.

isEqualNode sample code for javax.imageio.metadata.IIOMetadataNode.isEqualNode(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.isEqualNode(org.w3c.dom.Node)

public boolean isEqualNode(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  node)
Description copied from interface: Node sample code for org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node) definition code for org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node)
Tests whether two nodes are equal.
This method tests for equality of nodes, not sameness (i.e., whether the two nodes are references to the same object) which can be tested with Node.isSameNode(). All nodes that are the same will also be equal, though the reverse may not be true.
Two nodes are equal if and only if the following conditions are satisfied:
For two DocumentType nodes to be equal, the following conditions must also be satisfied:
On the other hand, the following do not affect equality: the ownerDocument, baseURI, and parentNode attributes, the specified attribute for Attr nodes, the schemaTypeInfo attribute for Attr and Element nodes, the Text.isElementContentWhitespace attribute for Text nodes, as well as any user data or event listeners registered on the nodes.

Note: As a general rule, anything not mentioned in the description above is not significant in consideration of equality checking. Note that future versions of this specification may take into account more attributes and implementations conform to this specification are expected to be updated accordingly.

Specified by:
isEqualNode sample code for org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node) definition code for org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
node - The node to compare equality with.
Returns:
Returns true if the nodes are equal, false otherwise.

lookupNamespaceURI sample code for javax.imageio.metadata.IIOMetadataNode.lookupNamespaceURI(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.lookupNamespaceURI(java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  lookupNamespaceURI(String sample code for java.lang.String definition code for java.lang.String  prefix)
Description copied from interface: Node sample code for org.w3c.dom.Node.lookupNamespaceURI(java.lang.String) definition code for org.w3c.dom.Node.lookupNamespaceURI(java.lang.String)
Look up the namespace URI associated to the given prefix, starting from this node.
See for details on the algorithm used by this method.

Specified by:
lookupNamespaceURI sample code for org.w3c.dom.Node.lookupNamespaceURI(java.lang.String) definition code for org.w3c.dom.Node.lookupNamespaceURI(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
prefix - The prefix to look for. If this parameter is null, the method will return the default namespace URI if any.
Returns:
Returns the associated namespace URI or null if none is found.

isDefaultNamespace sample code for javax.imageio.metadata.IIOMetadataNode.isDefaultNamespace(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.isDefaultNamespace(java.lang.String)

public boolean isDefaultNamespace(String sample code for java.lang.String definition code for java.lang.String  namespaceURI)
Description copied from interface: Node sample code for org.w3c.dom.Node.isDefaultNamespace(java.lang.String) definition code for org.w3c.dom.Node.isDefaultNamespace(java.lang.String)
This method checks if the specified namespaceURI is the default namespace or not.

Specified by:
isDefaultNamespace sample code for org.w3c.dom.Node.isDefaultNamespace(java.lang.String) definition code for org.w3c.dom.Node.isDefaultNamespace(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
namespaceURI - The namespace URI to look for.
Returns:
Returns true if the specified namespaceURI is the default namespace, false otherwise.

lookupPrefix sample code for javax.imageio.metadata.IIOMetadataNode.lookupPrefix(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.lookupPrefix(java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  lookupPrefix(String sample code for java.lang.String definition code for java.lang.String  namespaceURI)
Description copied from interface: Node sample code for org.w3c.dom.Node.lookupPrefix(java.lang.String) definition code for org.w3c.dom.Node.lookupPrefix(java.lang.String)
Look up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method.
See for details on the algorithm used by this method.

Specified by:
lookupPrefix sample code for org.w3c.dom.Node.lookupPrefix(java.lang.String) definition code for org.w3c.dom.Node.lookupPrefix(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
namespaceURI - The namespace URI to look for.
Returns:
Returns an associated namespace prefix if found or null if none is found. If more than one prefix are associated to the namespace prefix, the returned namespace prefix is implementation dependent.

getTextContent sample code for javax.imageio.metadata.IIOMetadataNode.getTextContent() definition code for javax.imageio.metadata.IIOMetadataNode.getTextContent()

public String sample code for java.lang.String definition code for java.lang.String  getTextContent()
                      throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Node sample code for org.w3c.dom.Node.getTextContent() definition code for org.w3c.dom.Node.getTextContent()
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.
On getting, no serialization is performed, the returned string does not contain any markup. No whitespace normalization is performed and the returned string does not contain the white spaces in element content (see the attribute Text.isElementContentWhitespace). Similarly, on setting, no parsing is performed either, the input string is taken as pure textual content.
The string returned is made of the text content of this node depending on its type, as defined below:
Node type Content
ELEMENT_NODE, ATTRIBUTE_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the node has no children.
TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE nodeValue
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE null

Specified by:
getTextContent sample code for org.w3c.dom.Node.getTextContent() definition code for org.w3c.dom.Node.getTextContent() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.

setTextContent sample code for javax.imageio.metadata.IIOMetadataNode.setTextContent(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataNode.setTextContent(java.lang.String)

public void setTextContent(String sample code for java.lang.String definition code for java.lang.String  textContent)
                    throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Node sample code for org.w3c.dom.Node.setTextContent(java.lang.String) definition code for org.w3c.dom.Node.setTextContent(java.lang.String)
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.
On getting, no serialization is performed, the returned string does not contain any markup. No whitespace normalization is performed and the returned string does not contain the white spaces in element content (see the attribute Text.isElementContentWhitespace). Similarly, on setting, no parsing is performed either, the input string is taken as pure textual content.
The string returned is made of the text content of this node depending on its type, as defined below:
Node type Content
ELEMENT_NODE, ATTRIBUTE_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the node has no children.
TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE nodeValue
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE null

Specified by:
setTextContent sample code for org.w3c.dom.Node.setTextContent(java.lang.String) definition code for org.w3c.dom.Node.setTextContent(java.lang.String) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

compareDocumentPosition sample code for javax.imageio.metadata.IIOMetadataNode.compareDocumentPosition(org.w3c.dom.Node) definition code for javax.imageio.metadata.IIOMetadataNode.compareDocumentPosition(org.w3c.dom.Node)

public short compareDocumentPosition(Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  other)
                              throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Description copied from interface: Node sample code for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node) definition code for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node)
Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order.

Specified by:
compareDocumentPosition sample code for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node) definition code for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node) in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
Parameters:
other - The node to compare against the reference node.
Returns:
Returns how the node is positioned relatively to the reference node.
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - NOT_SUPPORTED_ERR: when the compared nodes are from different DOM implementations that do not coordinate to return consistent implementation-specific results.

getBaseURI sample code for javax.imageio.metadata.IIOMetadataNode.getBaseURI() definition code for javax.imageio.metadata.IIOMetadataNode.getBaseURI()

public String sample code for java.lang.String definition code for java.lang.String  getBaseURI()
Description copied from interface: Node sample code for org.w3c.dom.Node.getBaseURI() definition code for org.w3c.dom.Node.getBaseURI()
The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI. This value is computed as described in . However, when the Document supports the feature "HTML" [DOM Level 2 HTML] , the base URI is computed using first the value of the href attribute of the HTML BASE element if any, and the value of the documentURI attribute from the Document interface otherwise.

Specified by:
getBaseURI sample code for org.w3c.dom.Node.getBaseURI() definition code for org.w3c.dom.Node.getBaseURI() in interface Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node