org.apache.xalan.templates
Class ElemLiteralResult.LiteralElementAttributes
java.lang.Object
org.apache.xalan.templates.ElemLiteralResult.LiteralElementAttributes
- ElemLiteralResult
- NamedNodeMap
public class ElemLiteralResult.LiteralElementAttributes
extends java.lang.Object
implements NamedNodeMap
LiteralElementAttributes
public LiteralElementAttributes()
Construct a NameNodeMap.
getLength
public int getLength()
Return the number of Attributes on this Element
- The number of nodes in this map. The range of valid child
node indices is
0
to length-1
inclusive
getNamedItem
public Node getNamedItem(String name)
Retrieves a node specified by name.
name
- The nodeName
of a node to retrieve.
- A
Node
(of any type) with the specified
nodeName
, or null
if it does not
identify any node in this map.
getNamedItemNS
public Node getNamedItemNS(String namespaceURI,
String localName)
Retrieves a node specified by local name and namespace URI.
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to
get
- A
Node
(of any type) with the specified
nodeName
, or null
if it does not
identify any node in this map.
item
public Node item(int i)
Returns the index
th item in the map. If index
is greater than or equal to the number of nodes in this
map, this returns null
.
i
- The index of the requested item.
- The node at the
index
th position in the map,
or null
if that is not a valid index.
removeNamedItem
public Node removeNamedItem(String name)
throws DOMException
name
- of the node to remove
- The node removed from this map if a node with such
a name exists.
removeNamedItemNS
public Node removeNamedItemNS(String namespaceURI,
String localName)
throws DOMException
namespaceURI
- Namespace URI of the node to removelocalName
- Local part of qualified name of the node to remove
- The node removed from this map if a node with such a local
name and namespace URI exists
setNamedItem
public Node setNamedItem(Node arg)
throws DOMException
Unimplemented. See org.w3c.dom.NamedNodeMap
- If the new Node replaces an existing node the replaced
Node is returned, otherwise null is returned
setNamedItemNS
public Node setNamedItemNS(Node arg)
throws DOMException
Unimplemented. See org.w3c.dom.NamedNodeMap
- If the new Node replaces an existing node the replaced
Node is returned, otherwise null is returned
Copyright B) 2005 Apache XML Project. All Rights Reserved.