Package org.apache.xalan.templates
Class ElemLiteralResult.LiteralElementAttributes
java.lang.Object
org.apache.xalan.templates.ElemLiteralResult.LiteralElementAttributes
- All Implemented Interfaces:
NamedNodeMap
- Enclosing class:
- ElemLiteralResult
public class ElemLiteralResult.LiteralElementAttributes extends Object implements NamedNodeMap
-
Constructor Summary
Constructors Constructor Description LiteralElementAttributes()Construct a NameNodeMap. -
Method Summary
Modifier and Type Method Description intgetLength()Return the number of Attributes on this ElementNodegetNamedItem(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 theindexth item in the map.NoderemoveNamedItem(String name)Removes a node specified by name.NoderemoveNamedItemNS(String namespaceURI, String localName)Removes a node specified by local name and namespace URI.NodesetNamedItem(Node arg)Unimplemented.NodesetNamedItemNS(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:
getLengthin interfaceNamedNodeMap- Returns:
- The number of nodes in this map. The range of valid child
node indices is
0tolength-1inclusive
-
getNamedItem
Retrieves a node specified by name.- Specified by:
getNamedItemin interfaceNamedNodeMap- Parameters:
name- ThenodeNameof a node to retrieve.- Returns:
- A
Node(of any type) with the specifiednodeName, ornullif it does not identify any node in this map.
-
getNamedItemNS
Retrieves a node specified by local name and namespace URI.- Specified by:
getNamedItemNSin 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, ornullif it does not identify any node in this map.
-
item
Returns theindexth item in the map. Ifindexis greater than or equal to the number of nodes in this map, this returnsnull.- Specified by:
itemin interfaceNamedNodeMap- Parameters:
i- The index of the requested item.- Returns:
- The node at the
indexth position in the map, ornullif that is not a valid index.
-
removeNamedItem
Description copied from interface:NamedNodeMapRemoves a node specified by name. When this map contains the attributes attached to an element, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.- Specified by:
removeNamedItemin 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:
NamedNodeMap
-
removeNamedItemNS
Description copied from interface:NamedNodeMapRemoves a node specified by local name and namespace URI. A removed attribute may be known to have a default value when this map contains the attributes attached to an element, as returned by the attributes attribute of theNodeinterface. If so, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.
Per [XML Namespaces] , applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace.- Specified by:
removeNamedItemNSin 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:
NamedNodeMap
-
setNamedItem
Unimplemented. See org.w3c.dom.NamedNodeMap- Specified by:
setNamedItemin 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:
setNamedItemNSin 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
-