org.apache.xalan.templates

Class ElemLiteralResult.LiteralElementAttributes

public class ElemLiteralResult.LiteralElementAttributes extends Object implements NamedNodeMap

Constructor Summary
LiteralElementAttributes()
Construct a NameNodeMap.
Method Summary
intgetLength()
Return the number of Attributes on this Element
NodegetNamedItem(String name)
Retrieves a node specified by name.
NodegetNamedItemNS(String namespaceURI, String localName)
Retrieves a node specified by local name and namespace URI.
Nodeitem(int i)
Returns the indexth item in the map.
NoderemoveNamedItem(String name)
NoderemoveNamedItemNS(String namespaceURI, String localName)
NodesetNamedItem(Node arg)
Unimplemented.
NodesetNamedItemNS(Node arg)
Unimplemented.

Constructor Detail

LiteralElementAttributes

public LiteralElementAttributes()
Construct a NameNodeMap.

Method Detail

getLength

public int getLength()
Return the number of Attributes on this Element

Returns: 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.

Parameters: name The nodeName of a node to retrieve.

Returns: 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.

Parameters: namespaceURI Namespace URI of attribute node to get localName Local part of qualified name of attribute node to get

Returns: 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 indexth item in the map. If index is greater than or equal to the number of nodes in this map, this returns null.

Parameters: i The index of the requested item.

Returns: The node at the indexth position in the map, or null if that is not a valid index.

removeNamedItem

public Node removeNamedItem(String name)

Parameters: name of the node to remove

Returns: The node removed from this map if a node with such a name exists.

Throws: DOMException

See Also: org.w3c.dom.NamedNodeMap

removeNamedItemNS

public Node removeNamedItemNS(String namespaceURI, String localName)

Parameters: namespaceURI Namespace URI of the node to remove localName Local part of qualified name of the node to remove

Returns: The node removed from this map if a node with such a local name and namespace URI exists

Throws: DOMException

See Also: org.w3c.dom.NamedNodeMap

setNamedItem

public Node setNamedItem(Node arg)
Unimplemented. See org.w3c.dom.NamedNodeMap

Parameters: A node to store in this map

Returns: If the new Node replaces an existing node the replaced Node is returned, otherwise null is returned

Throws: DOMException

setNamedItemNS

public Node setNamedItemNS(Node arg)
Unimplemented. See org.w3c.dom.NamedNodeMap

Parameters: A node to store in this map

Returns: If the new Node replaces an existing node the replaced Node is returned, otherwise null is returned

Throws: DOMException

Copyright B) 2006 Apache XML Project. All Rights Reserved.