API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.metadata. IIOMetadataNode View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      IIOMetadataNode
Implements
 Element
 NodeList
Subclasses
Description
public class IIOMetadataNode
  A class representing a node in a meta-data tree, which implements the org.w3c.dom.Element interface and additionally allows for the storage of non-textual objects via the getUserObject and setUserObject methods.
Constructors
public IIOMetadataNode ()
Constructs an empty IIOMetadataNode.
public IIOMetadataNode (String nodeName)
  Constructs an IIOMetadataNode with a given node name.
Methods
Hide/Show inherited methods
public Node appendChild (Node newChild)
  Adds the node newChild to the end of the list of children of this node.
public Node cloneNode (boolean deep)
  Returns a duplicate of this node.
public short compareDocumentPosition (Node other) throws DOMException
public String getAttribute (String name) [Specified in Element]
public Attr getAttributeNode (String name) [Specified in Element]
public Attr getAttributeNodeNS (String namespaceURI, String localName) [Specified in Element]
  Equivalent to getAttributeNode(localName).
public String getAttributeNS (String namespaceURI, String localName) [Specified in Element]
  Equivalent to getAttribute(localName).
public NamedNodeMap getAttributes ()
public String getBaseURI ()
public NodeList getChildNodes ()
public NodeList getElementsByTagName (String name) [Specified in Element]
public NodeList getElementsByTagNameNS (String namespaceURI, String localName) [Specified in Element]
Equivalent to getElementsByTagName(localName).
public Object getFeature (String feature, String version)
public Node getFirstChild ()
  Returns the first child of this node, or null if the node has no children.
public Node getLastChild ()
  Returns the last child of this node, or null if the node has no children.
public int getLength () [Specified in NodeList]
public String getLocalName ()
  Equivalent to getNodeName.
public String getNamespaceURI () throws DOMException
Returns null, since namespaces are not supported.
public Node getNextSibling ()
  Returns the next sibling of this node, or null if the node has no next sibling.
public String getNodeName ()
  Returns the node name associated with this node.
public short getNodeType ()
  Returns the node type, which is always ELEMENT_NODE.
public String getNodeValue () throws DOMException
public Document getOwnerDocument ()
  Returns null, since IIOMetadataNodes do not belong to any Document.
public Node getParentNode ()
  Returns the parent of this node.
public String getPrefix ()
  Returns null, since namespaces are not supported.
public Node getPreviousSibling ()
  Returns the previous sibling of this node, or null if this node has no previous sibling.
public TypeInfo getSchemaTypeInfo () [Specified in Element]
public String getTagName () [Specified in Element]
public String getTextContent () throws DOMException
public Object getUserData (String key)
public Object getUserObject ()
  Returns the Object value associated with this node.
public boolean hasAttribute (String name) [Specified in Element]
public boolean hasAttributeNS (String namespaceURI, String localName) [Specified in Element]
Equivalent to hasAttribute(localName).
public boolean hasAttributes ()
public boolean hasChildNodes ()
  Returns true if this node has child nodes.
public Node insertBefore (Node newChild, Node refChild)
  Inserts the node newChild before the existing child node refChild.
public boolean isDefaultNamespace (String namespaceURI)
public boolean isEqualNode (Node node)
public boolean isSameNode (Node node)
public boolean isSupported (String feature, String version)
  Returns false since DOM features are not supported.
public Node item (int index) [Specified in NodeList]
public String lookupNamespaceURI (String prefix)
public String lookupPrefix (String namespaceURI)
public void normalize ()
Does nothing, since IIOMetadataNodes do not contain Text children.
public void removeAttribute (String name) [Specified in Element]
public Attr removeAttributeNode (Attr oldAttr) [Specified in Element]
public void removeAttributeNS (String namespaceURI, String localName) [Specified in Element]
Equivalent to removeAttribute(localName).
public Node removeChild (Node oldChild)
  Removes the child node indicated by oldChild from the list of children, and returns it.
public Node replaceChild (Node newChild, Node oldChild)
  Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
public void setAttribute (String name, String value) [Specified in Element]
public Attr setAttributeNode (Attr newAttr) throws DOMException [Specified in Element]
public Attr setAttributeNodeNS (Attr newAttr) [Specified in Element]
  Equivalent to setAttributeNode(newAttr).
public void setAttributeNS (String namespaceURI, String qualifiedName, String value) [Specified in Element]
  Equivalent to setAttribute(qualifiedName, value).
public void setIdAttribute (String name, boolean isId) throws DOMException [Specified in Element]
public void setIdAttributeNode (Attr idAttr, boolean isId) throws DOMException [Specified in Element]
public void setIdAttributeNS (String namespaceURI, String localName, boolean isId) throws DOMException [Specified in Element]
public void setNodeValue (String nodeValue) throws DOMException
public void setPrefix (String prefix)
  Does nothing, since namespaces are not supported.
public void setTextContent (String textContent) throws DOMException
public Object setUserData (String key, Object data, UserDataHandler handler)
public void setUserObject (Object userObject)
  Sets the value associated with this node.
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From Element]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From Element]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From Element]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From Element]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From Element]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From Element]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From Element]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From Element]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From Element]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From Element]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From Element]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From Element]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From Element]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From Element]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From Element]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From Element]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From Element]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From Element]
The node is a Text node.
pack-private String textContent
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar