Package org.apache.xalan.templates
Class ElemLiteralResult.LiteralElementAttributes
- java.lang.Object
-
- org.apache.xalan.templates.ElemLiteralResult.LiteralElementAttributes
-
- All Implemented Interfaces:
org.w3c.dom.NamedNodeMap
- Enclosing class:
- ElemLiteralResult
public class ElemLiteralResult.LiteralElementAttributes extends java.lang.Object implements org.w3c.dom.NamedNodeMap
-
-
Constructor Summary
Constructors Constructor Description LiteralElementAttributes()Construct a NameNodeMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Return the number of Attributes on this Elementorg.w3c.dom.NodegetNamedItem(java.lang.String name)Retrieves a node specified by name.org.w3c.dom.NodegetNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)Retrieves a node specified by local name and namespace URI.org.w3c.dom.Nodeitem(int i)Returns theindexth item in the map.org.w3c.dom.NoderemoveNamedItem(java.lang.String name)org.w3c.dom.NoderemoveNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)org.w3c.dom.NodesetNamedItem(org.w3c.dom.Node arg)Unimplemented.org.w3c.dom.NodesetNamedItemNS(org.w3c.dom.Node arg)Unimplemented.
-
-
-
Method Detail
-
getLength
public int getLength()
Return the number of Attributes on this Element- Specified by:
getLengthin interfaceorg.w3c.dom.NamedNodeMap- Returns:
- The number of nodes in this map. The range of valid child
node indices is
0tolength-1inclusive
-
getNamedItem
public org.w3c.dom.Node getNamedItem(java.lang.String name)
Retrieves a node specified by name.- Specified by:
getNamedItemin interfaceorg.w3c.dom.NamedNodeMap- 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
public org.w3c.dom.Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)Retrieves a node specified by local name and namespace URI.- Specified by:
getNamedItemNSin interfaceorg.w3c.dom.NamedNodeMap- 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
public org.w3c.dom.Node item(int i)
Returns theindexth item in the map. Ifindexis greater than or equal to the number of nodes in this map, this returnsnull.- Specified by:
itemin interfaceorg.w3c.dom.NamedNodeMap- 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
public org.w3c.dom.Node removeNamedItem(java.lang.String name) throws org.w3c.dom.DOMException- Specified by:
removeNamedItemin interfaceorg.w3c.dom.NamedNodeMap- Parameters:
name- of the node to remove- Returns:
- The node removed from this map if a node with such a name exists.
- Throws:
org.w3c.dom.DOMException- See Also:
NamedNodeMap
-
removeNamedItemNS
public org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.DOMException- Specified by:
removeNamedItemNSin interfaceorg.w3c.dom.NamedNodeMap- 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:
org.w3c.dom.DOMException- See Also:
NamedNodeMap
-
setNamedItem
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg) throws org.w3c.dom.DOMExceptionUnimplemented. See org.w3c.dom.NamedNodeMap- Specified by:
setNamedItemin interfaceorg.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:
org.w3c.dom.DOMException
-
setNamedItemNS
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.DOMExceptionUnimplemented. See org.w3c.dom.NamedNodeMap- Specified by:
setNamedItemNSin interfaceorg.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:
org.w3c.dom.DOMException
-
-