APIdia Launch Partner
Top Fields Constructors Methods
javax.imageio.metadata

pack-priv Class IIONamedNodeMap

Located in compilation unit of javax.imageio.metadata.IIOMetadataNode.

extends Object
implements NamedNodeMap
Class Inheritance
All Implemented Interfaces
org.w3c.dom.NamedNodeMap

Field Summary

Modifier and TypeField and Description
pack-priv List<? extends Node>

Constructor Summary

AccessConstructor and Description
public
IIONamedNodeMap(List<? extends Node> nodes)

Method Summary

Modifier and TypeMethod and Description
public int
getLength()

Implements org.w3c.dom.NamedNodeMap.getLength.

The number of nodes in this map.

public Node
getNamedItem(String name)

Implements org.w3c.dom.NamedNodeMap.getNamedItem.

Retrieves a node specified by name.

public Node
getNamedItemNS(String namespaceURI, String localName)

Implements org.w3c.dom.NamedNodeMap.getNamedItemNS.

Equivalent to getNamedItem(localName).

public Node
item(int index)

Implements org.w3c.dom.NamedNodeMap.item.

Returns the indexth item in the map.

public Node
removeNamedItem(String name)

Implements org.w3c.dom.NamedNodeMap.removeNamedItem.

Removes a node specified by name.

public Node
removeNamedItemNS(String namespaceURI, String localName)

Implements org.w3c.dom.NamedNodeMap.removeNamedItemNS.

Equivalent to removeNamedItem(localName).

public Node
setNamedItem(Node arg)

Implements org.w3c.dom.NamedNodeMap.setNamedItem.

Adds a node using its nodeName attribute.

public Node
setNamedItemNS(Node arg)

Implements org.w3c.dom.NamedNodeMap.setNamedItemNS.

Equivalent to setNamedItem(arg).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nodesback to summary
pack-priv List<? extends Node> nodes

Constructor Detail

IIONamedNodeMapback to summary
public IIONamedNodeMap(List<? extends Node> nodes)

Method Detail

getLengthback to summary
public int getLength()

Implements org.w3c.dom.NamedNodeMap.getLength.

Doc from org.w3c.dom.NamedNodeMap.getLength.

The number of nodes in this map. The range of valid child node indices is 0 to length-1 inclusive.

getNamedItemback to summary
public Node getNamedItem(String name)

Implements org.w3c.dom.NamedNodeMap.getNamedItem.

Doc from org.w3c.dom.NamedNodeMap.getNamedItem.

Retrieves a node specified by name.

getNamedItemNSback to summary
public Node getNamedItemNS(String namespaceURI, String localName)

Implements org.w3c.dom.NamedNodeMap.getNamedItemNS.

Equivalent to getNamedItem(localName).

itemback to summary
public Node item(int index)

Implements org.w3c.dom.NamedNodeMap.item.

Doc from org.w3c.dom.NamedNodeMap.item.

Returns the indexth item in the map. If index is greater than or equal to the number of nodes in this map, this returns null.

removeNamedItemback to summary
public Node removeNamedItem(String name)

Implements org.w3c.dom.NamedNodeMap.removeNamedItem.

Doc from org.w3c.dom.NamedNodeMap.removeNamedItem.

Removes a node specified by name. When this map contains the attributes attached to an element, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.

removeNamedItemNSback to summary
public Node removeNamedItemNS(String namespaceURI, String localName)

Implements org.w3c.dom.NamedNodeMap.removeNamedItemNS.

Equivalent to removeNamedItem(localName).

setNamedItemback to summary
public Node setNamedItem(Node arg)

Implements org.w3c.dom.NamedNodeMap.setNamedItem.

Doc from org.w3c.dom.NamedNodeMap.setNamedItem.

Adds a node using its nodeName attribute. If a node with that name is already present in this map, it is replaced by the new one. Replacing a node by itself has no effect.
As the nodeName attribute is used to derive the name which the node must be stored under, multiple nodes of certain types (those that have a "special" string value) cannot be stored as the names would clash. This is seen as preferable to allowing nodes to be aliased.

setNamedItemNSback to summary
public Node setNamedItemNS(Node arg)

Implements org.w3c.dom.NamedNodeMap.setNamedItemNS.

Equivalent to setNamedItem(arg).