com.manspace.resultSetDOMWrapper
Class ArrayBasedElement

java.lang.Object
  |
  +--com.manspace.resultSetDOMWrapper.ReadOnlyNode
        |
        +--com.manspace.resultSetDOMWrapper.ReadOnlyElement
              |
              +--com.manspace.resultSetDOMWrapper.ArrayBasedElement
All Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.NodeList
Direct Known Subclasses:
ResultSetDocument, ResultSetElement, RowElement

public abstract class ArrayBasedElement
extends ReadOnlyElement
implements org.w3c.dom.NodeList

Element that has an array as the basis of its children

Version:
1.0
Author:
Tal Rotbart

Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
ArrayBasedElement()
           
 
Method Summary
abstract  void clear()
          Clear the elements array for GC
 org.w3c.dom.Node cloneNode(boolean deep)
           
 java.lang.String getAttribute(java.lang.String name)
           
 org.w3c.dom.Attr getAttributeNode(java.lang.String name)
           
 org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
           
 java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
           
 org.w3c.dom.NamedNodeMap getAttributes()
           
abstract  org.w3c.dom.Element[] getChildElements()
          Returns the array of child elements
abstract  java.lang.String getChildElementsLocalName()
          The local name of child elements
 org.w3c.dom.NodeList getChildNodes()
           
 org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
           
 org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
           
 org.w3c.dom.Node getFirstChild()
           
 org.w3c.dom.Node getLastChild()
           
 int getLength()
           
 java.lang.String getNodeValue()
           
 boolean hasAttribute(java.lang.String name)
           
 boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
           
 boolean hasAttributes()
           
 boolean hasChildNodes()
           
 org.w3c.dom.Node item(int index)
           
 
Methods inherited from class com.manspace.resultSetDOMWrapper.ReadOnlyElement
getNodeType, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from class com.manspace.resultSetDOMWrapper.ReadOnlyNode
appendChild, getNodeName, getTagName, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getTagName
 
Methods inherited from interface org.w3c.dom.Node
appendChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

ArrayBasedElement

public ArrayBasedElement()
Method Detail

getChildElements

public abstract org.w3c.dom.Element[] getChildElements()
Returns the array of child elements

Returns:
The array of child elements

getChildElementsLocalName

public abstract java.lang.String getChildElementsLocalName()
The local name of child elements

Returns:
The local name of child elements

clear

public abstract void clear()
Clear the elements array for GC


getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
Specified by:
getElementsByTagName in interface org.w3c.dom.Element
See Also:
Element.getElementsByTagName(java.lang.String)

getElementsByTagNameNS

public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
                                                   java.lang.String localName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Element
See Also:
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Specified by:
getChildNodes in interface org.w3c.dom.Node
See Also:
Node.getChildNodes()

getFirstChild

public org.w3c.dom.Node getFirstChild()
Specified by:
getFirstChild in interface org.w3c.dom.Node
See Also:
Node.getFirstChild()

getLastChild

public org.w3c.dom.Node getLastChild()
Specified by:
getLastChild in interface org.w3c.dom.Node
See Also:
Node.getLastChild()

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface org.w3c.dom.Node
See Also:
Node.hasChildNodes()

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Specified by:
getAttribute in interface org.w3c.dom.Element
See Also:
Element.getAttribute(java.lang.String)

getAttributeNode

public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
Specified by:
getAttributeNode in interface org.w3c.dom.Element
See Also:
Element.getAttributeNode(java.lang.String)

getAttributeNodeNS

public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI,
                                           java.lang.String localName)
Specified by:
getAttributeNodeNS in interface org.w3c.dom.Element
See Also:
Element.getAttributeNodeNS(java.lang.String, java.lang.String)

getAttributeNS

public java.lang.String getAttributeNS(java.lang.String namespaceURI,
                                       java.lang.String localName)
Specified by:
getAttributeNS in interface org.w3c.dom.Element
See Also:
Element.getAttributeNS(java.lang.String, java.lang.String)

hasAttribute

public boolean hasAttribute(java.lang.String name)
Specified by:
hasAttribute in interface org.w3c.dom.Element
See Also:
Element.hasAttribute(java.lang.String)

hasAttributeNS

public boolean hasAttributeNS(java.lang.String namespaceURI,
                              java.lang.String localName)
Specified by:
hasAttributeNS in interface org.w3c.dom.Element
See Also:
Element.hasAttributeNS(java.lang.String, java.lang.String)

cloneNode

public org.w3c.dom.Node cloneNode(boolean deep)
Specified by:
cloneNode in interface org.w3c.dom.Node
See Also:
Node.cloneNode(boolean)

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Specified by:
getAttributes in interface org.w3c.dom.Node
See Also:
Node.getAttributes()

getNodeValue

public java.lang.String getNodeValue()
                              throws org.w3c.dom.DOMException
Specified by:
getNodeValue in interface org.w3c.dom.Node
org.w3c.dom.DOMException
See Also:
Node.getNodeValue()

hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface org.w3c.dom.Node
See Also:
Node.hasAttributes()

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.NodeList
See Also:
NodeList.getLength()

item

public org.w3c.dom.Node item(int index)
Specified by:
item in interface org.w3c.dom.NodeList
See Also:
NodeList.item(int)


Copyright 2003 Tal Rotbart, Manspace. See LICENSE.TXT for license.