|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgnu.xml.dom.DomNamedNodeMap
"NamedNodeMap" implementation.
Used mostly to hold element attributes, but sometimes also to list notations or entities.
| Constructor Summary | |
|---|---|
DomNamedNodeMap(Document owner)
Constructs an empty map associated with the specified document. |
|
| Method Summary | |
|---|---|
void |
compact()
Reduces space utilization for this object. |
int |
getLength()
DOM L1 Returns the length of the map. |
Node |
getNamedItem(String name)
DOM L1 Returns the named item from the map, or null; names are just the nodeName property. |
Node |
getNamedItemNS(String namespaceURI,
String localName)
DOM L2 Returns the named item from the map, or null; names are the localName and namespaceURI properties, ignoring any prefix. |
boolean |
isReadonly()
Exposes the internal "readonly" flag. |
Node |
item(int index)
DOM L1 Returns the indexed item from the map, or null. |
void |
makeReadonly()
Sets the internal "readonly" flag so the node and its children can't be changed. |
Node |
removeNamedItem(String name)
DOM L1 Removes the named item from the map, or reports an exception; names are just the nodeName property. |
Node |
removeNamedItemNS(String namespaceURI,
String localName)
DOM L2 Removes the named item from the map, or reports an exception; names are the localName and namespaceURI properties. |
Node |
setNamedItem(Node arg)
DOM L1 Stores the named item into the map, optionally overwriting any existing node with that name. |
Node |
setNamedItemNS(Node arg)
DOM L2 Stores the named item into the map, optionally overwriting any existing node with that fully qualified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DomNamedNodeMap(Document owner)
| Method Detail |
public void compact()
public final boolean isReadonly()
public void makeReadonly()
public Node getNamedItem(String name)
getNamedItem in interface NamedNodeMap
public Node getNamedItemNS(String namespaceURI,
String localName)
getNamedItemNS in interface NamedNodeMappublic Node setNamedItem(Node arg)
setNamedItem in interface NamedNodeMappublic Node setNamedItemNS(Node arg)
setNamedItemNS in interface NamedNodeMappublic Node removeNamedItem(String name)
removeNamedItem in interface NamedNodeMap
public Node removeNamedItemNS(String namespaceURI,
String localName)
removeNamedItemNS in interface NamedNodeMappublic Node item(int index)
item in interface NamedNodeMappublic int getLength()
getLength in interface NamedNodeMap
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2007-02-12.