com.jclark.xsl.dom
Class ElementNode

java.lang.Object
  extended by com.jclark.xsl.dom.NodeBase
      extended by com.jclark.xsl.dom.ContainerNode
          extended by com.jclark.xsl.dom.ElementNode
All Implemented Interfaces:
Node, javax.xml.transform.SourceLocator

 class ElementNode
extends ContainerNode


Nested Class Summary
(package private)  class ElementNode.AttributesIterator
           
 
Field Summary
 
Fields inherited from class com.jclark.xsl.dom.ContainerNode
prefixMap, preserveSpace
 
Fields inherited from class com.jclark.xsl.dom.NodeBase
domNode, level, parent, root
 
Fields inherited from interface com.jclark.xsl.om.Node
ALLTYPES, ATTRIBUTE, COMMENT, ELEMENT, N_TYPES, NAMESPACE, PROCESSING_INSTRUCTION, ROOT, TEXT
 
Constructor Summary
ElementNode(org.w3c.dom.Node domNode, ContainerNode parent, int childIndex)
           
 
Method Summary
 Node getAttribute(Name name)
          default behavior -- return null.
 SafeNodeIterator getAttributes()
          does this only work on Elements?
 java.lang.String getAttributeValue(Name name)
          default behavior -- return null.
 Name getName()
          default behavior -- return null.
 boolean getPreserveSpace()
           
 byte getType()
          returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
 
Methods inherited from class com.jclark.xsl.dom.ContainerNode
getChildren, getNamespacePrefixMap, getUnparsedEntityURI
 
Methods inherited from class com.jclark.xsl.dom.NodeBase
compareTo, equals, getColumnNumber, getData, getElementWithId, getFollowingSiblings, getGeneratedId, getLineNumber, getNamespaces, getParent, getPublicId, getRoot, getSystemId, getURL, isId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementNode

ElementNode(org.w3c.dom.Node domNode,
            ContainerNode parent,
            int childIndex)
Method Detail

getType

public byte getType()
Description copied from interface: Node
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT


getName

public Name getName()
Description copied from class: NodeBase
default behavior -- return null. Descendant classes override

Specified by:
getName in interface Node
Overrides:
getName in class NodeBase

getAttributeValue

public java.lang.String getAttributeValue(Name name)
Description copied from class: NodeBase
default behavior -- return null. Descendant classes override

Specified by:
getAttributeValue in interface Node
Overrides:
getAttributeValue in class NodeBase

getAttribute

public Node getAttribute(Name name)
Description copied from class: NodeBase
default behavior -- return null. Descendant classes override

Specified by:
getAttribute in interface Node
Overrides:
getAttribute in class NodeBase

getAttributes

public SafeNodeIterator getAttributes()
Description copied from interface: Node
does this only work on Elements?

Specified by:
getAttributes in interface Node
Overrides:
getAttributes in class NodeBase

getPreserveSpace

public boolean getPreserveSpace()
Overrides:
getPreserveSpace in class ContainerNode