public class ElemLiteralResult.LiteralElementAttributes extends java.lang.Object implements NamedNodeMap
Constructor and Description |
---|
ElemLiteralResult.LiteralElementAttributes()
Construct a NameNodeMap.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Return the number of Attributes on this Element
|
Node |
getNamedItem(java.lang.String name)
Retrieves a node specified by name.
|
Node |
getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves a node specified by local name and namespace URI.
|
Node |
item(int i)
Returns the
index th item in the map. |
Node |
removeNamedItem(java.lang.String name)
Removes a node specified by name.
|
Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Removes a node specified by local name and namespace URI.
|
Node |
setNamedItem(Node arg)
Unimplemented.
|
Node |
setNamedItemNS(Node arg)
Unimplemented.
|
public ElemLiteralResult.LiteralElementAttributes()
public int getLength()
getLength
in interface NamedNodeMap
0
to length-1
inclusivepublic Node getNamedItem(java.lang.String name)
getNamedItem
in interface NamedNodeMap
name
- The nodeName
of a node to retrieve.Node
(of any type) with the specified
nodeName
, or null
if it does not
identify any node in this map.public Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
getNamedItemNS
in interface NamedNodeMap
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to
getNode
(of any type) with the specified
nodeName
, or null
if it does not
identify any node in this map.public Node item(int i)
index
th item in the map. If index
is greater than or equal to the number of nodes in this
map, this returns null
.item
in interface NamedNodeMap
i
- The index of the requested item.index
th position in the map,
or null
if that is not a valid index.public Node removeNamedItem(java.lang.String name) throws DOMException
NamedNodeMap
removeNamedItem
in interface NamedNodeMap
name
- of the node to removeDOMException
NamedNodeMap
public Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException
NamedNodeMap
Node
interface. If so, an attribute
immediately appears containing the default value as well as the
corresponding namespace URI, local name, and prefix when applicable.
removeNamedItemNS
in interface NamedNodeMap
namespaceURI
- Namespace URI of the node to removelocalName
- Local part of qualified name of the node to removeDOMException
NamedNodeMap
public Node setNamedItem(Node arg) throws DOMException
setNamedItem
in interface NamedNodeMap
A
- node to store in this mapDOMException
public Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS
in interface NamedNodeMap
A
- node to store in this mapDOMException
Copyright © 2014 Apache XML Project. All Rights Reserved.