Package org.apache.xalan.templates
Class ElemLiteralResult.LiteralElementAttributes
java.lang.Object
org.apache.xalan.templates.ElemLiteralResult.LiteralElementAttributes
- All Implemented Interfaces:
NamedNodeMap
- Enclosing class:
- ElemLiteralResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Return the number of Attributes on this ElementgetNamedItem
(String name) Retrieves a node specified by name.getNamedItemNS
(String namespaceURI, String localName) Retrieves a node specified by local name and namespace URI.item
(int i) Returns theindex
th item in the map.removeNamedItem
(String name) removeNamedItemNS
(String namespaceURI, String localName) setNamedItem
(Node arg) Unimplemented.setNamedItemNS
(Node arg) Unimplemented.
-
Constructor Details
-
LiteralElementAttributes
public LiteralElementAttributes()Construct a NameNodeMap.
-
-
Method Details
-
getLength
public int getLength()Return the number of Attributes on this Element- Specified by:
getLength
in interfaceNamedNodeMap
- Returns:
- The number of nodes in this map. The range of valid child
node indices is
0
tolength-1
inclusive
-
getNamedItem
Retrieves a node specified by name.- Specified by:
getNamedItem
in interfaceNamedNodeMap
- Parameters:
name
- ThenodeName
of a node to retrieve.- Returns:
- A
Node
(of any type) with the specifiednodeName
, ornull
if it does not identify any node in this map.
-
getNamedItemNS
Retrieves a node specified by local name and namespace URI.- Specified by:
getNamedItemNS
in interfaceNamedNodeMap
- Parameters:
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get- Returns:
- A
Node
(of any type) with the specifiednodeName
, ornull
if it does not identify any node in this map.
-
item
Returns theindex
th item in the map. Ifindex
is greater than or equal to the number of nodes in this map, this returnsnull
.- Specified by:
item
in interfaceNamedNodeMap
- Parameters:
i
- The index of the requested item.- Returns:
- The node at the
index
th position in the map, ornull
if that is not a valid index.
-
removeNamedItem
- Specified by:
removeNamedItem
in interfaceNamedNodeMap
- 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:
-
removeNamedItemNS
- Specified by:
removeNamedItemNS
in interfaceNamedNodeMap
- Parameters:
namespaceURI
- Namespace URI of the node to removelocalName
- 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:
-
setNamedItem
Unimplemented. See org.w3c.dom.NamedNodeMap- Specified by:
setNamedItem
in interfaceNamedNodeMap
- 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
Unimplemented. See org.w3c.dom.NamedNodeMap- Specified by:
setNamedItemNS
in interfaceNamedNodeMap
- 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
-