Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xalan.xpath.dtm
Class DTMProxyMap

    java.lang.Object
      |
      +--org.apache.xalan.xpath.dtm.DTMProxyMap

public class DTMProxyMap
extends java.lang.Object
implements org.w3c.dom.NamedNodeMap

**For internal use only** DTMProxyMap is a quickie (as opposed to quick) implementation of the DOM's NamedNodeMap interface, intended to support DTMProxy's getAttributes() call.

***** Note: this does _not_ current attempt to cache any of the data; if you ask for attribute 27 and then 28, you'll have to rescan the first 27. It should probably at least keep track of the last one retrieved, and possibly buffer the whole array.

***** Also note that there's no fastpath for the by-name query; we search linearly until we find it or fail to find it. Again, that could be optimized at some cost in object creation/storage.

Method Summary
`int` | `getLength()` **For internal use only** Return the number of Attributes on this Element
`org.w3c.dom.Node` | `getNamedItem(java.lang.String name)` **For internal use only** Return the Attr node having a specific name
`org.w3c.dom.Node` | `getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)` **For internal use only** Retrieve a node specified by local name and namespace URI -- DOMLevel 2
`org.w3c.dom.Node` | `item(int i)` **For internal use only** Return the i'th Attr node bound to this element
`org.w3c.dom.Node` | `removeNamedItem(java.lang.String name)` **For internal use only** DOM API requires this, but DTM is a read-only model
`org.w3c.dom.Node` | `removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)` **For internal use only** DOM 2 API requires this, but DTM is a read-only model
`org.w3c.dom.Node` | `setNamedItem(org.w3c.dom.Node newNode)` **For internal use only** DOM API requires this, but DTM is a read-only model
`org.w3c.dom.Node` | `setNamedItemNS(org.w3c.dom.Node arg)` **For internal use only** DOM 2 API requires this, but DTM is a read-only model

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getLength

    public int getLength()

  **For internal use only** Return the number of Attributes on this Element
  Specified by:
    getLength in interface org.w3c.dom.NamedNodeMap

### getNamedItem

    public org.w3c.dom.Node getNamedItem(java.lang.String name)

  **For internal use only** Return the Attr node having a specific name
  Specified by:
    getNamedItem in interface org.w3c.dom.NamedNodeMap

### item

    public org.w3c.dom.Node item(int i)

  **For internal use only** Return the i'th Attr node bound to this element
  Specified by:
    item in interface org.w3c.dom.NamedNodeMap

### setNamedItem

    public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node newNode)

  **For internal use only** DOM API requires this, but DTM is a read-only model
  Specified by:
    setNamedItem in interface org.w3c.dom.NamedNodeMap

### removeNamedItem

    public org.w3c.dom.Node removeNamedItem(java.lang.String name)

  **For internal use only** DOM API requires this, but DTM is a read-only model
  Specified by:
    removeNamedItem in interface org.w3c.dom.NamedNodeMap

### getNamedItemNS

    public org.w3c.dom.Node getNamedItemNS(java.lang.String namespaceURI,
                                           java.lang.String localName)

  **For internal use only** Retrieve a node specified by local name and namespace URI -- DOMLevel 2
  Specified by:
    getNamedItemNS in interface org.w3c.dom.NamedNodeMap

### setNamedItemNS

    public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg)
                                    throws org.w3c.dom.DOMException

  **For internal use only** DOM 2 API requires this, but DTM is a read-only model
  Specified by:
    setNamedItemNS in interface org.w3c.dom.NamedNodeMap

### removeNamedItemNS

    public org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI,
                                              java.lang.String localName)
                                       throws org.w3c.dom.DOMException

  **For internal use only** DOM 2 API requires this, but DTM is a read-only model
  Specified by:
    removeNamedItemNS in interface org.w3c.dom.NamedNodeMap

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000 Apache XML Project. All Rights Reserved.