FileDocCategorySizeDatePackage
ProxyNamedNodeMap.javaAPI DocExample2772Mon Jul 23 13:26:44 BST 2007org.apache.struts2.views.xslt

ProxyNamedNodeMap

public class ProxyNamedNodeMap extends Object implements NamedNodeMap
A NamedNodeMap that wraps the Nodes returned in their proxies. Note: Since maps have no guaranteed order we don't need to worry about identity here as we do with "child" adapters. In that case we need to preserve identity in order to support finding the next/previous siblings.

Fields Summary
private NamedNodeMap
nodes
private AdapterFactory
adapterFactory
private AdapterNode
parent
Constructors Summary
public ProxyNamedNodeMap(AdapterFactory factory, AdapterNode parent, NamedNodeMap nodes)

        this.nodes = nodes;
        this.adapterFactory = factory;
        this.parent = parent;
    
Methods Summary
public intgetLength()

        return nodes.getLength();
    
public org.w3c.dom.NodegetNamedItem(java.lang.String name)

        return wrap(nodes.getNamedItem(name));
    
public org.w3c.dom.NodegetNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)

        return wrap(nodes.getNamedItemNS(namespaceURI, localName));
    
public org.w3c.dom.Nodeitem(int index)

        return wrap(nodes.item(index));
    
public org.w3c.dom.NoderemoveNamedItem(java.lang.String name)

        throw new UnsupportedOperationException();
    
public org.w3c.dom.NoderemoveNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)

        throw new UnsupportedOperationException();
    
public org.w3c.dom.NodesetNamedItem(org.w3c.dom.Node arg)

        throw new UnsupportedOperationException();
    
public org.w3c.dom.NodesetNamedItemNS(org.w3c.dom.Node arg)

        throw new UnsupportedOperationException();
    
protected org.w3c.dom.Nodewrap(org.w3c.dom.Node node)

        return adapterFactory.proxyNode(parent, node);