com.jclark.xsl.dom

Class ElementNode

Implemented Interfaces:
Node, SourceLocator

(package private) 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, PROCESSING_INSTRUCTION, ROOT, TEXT

Constructor Summary

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

Method Summary

Node
getAttribute(Name name)
does this only work on Elements?
String
getAttributeValue(Name name)
does this only work on Elements?
SafeNodeIterator
getAttributes()
does this only work on Elements?
Name
getName()
Returns element type name for element; attribute name for an attribute; target for a PI.
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, getPreserveSpace, getUnparsedEntityURI

Methods inherited from class com.jclark.xsl.dom.NodeBase

compareTo, equals, getAttribute, getAttributeValue, getAttributes, getChildren, getColumnNumber, getData, getElementWithId, getFollowingSiblings, getGeneratedId, getLineNumber, getName, getNamespacePrefixMap, getParent, getPublicId, getRoot, getSystemId, getURL, getUnparsedEntityURI, isId

Constructor Details

ElementNode

(package private)  ElementNode(org.w3c.dom.Node domNode,
                               ContainerNode parent,
                               int childIndex)

Method Details

getAttribute

public Node getAttribute(Name name)
does this only work on Elements?
Specified by:
getAttribute in interface Node
Overrides:
getAttribute in interface NodeBase

getAttributeValue

public String getAttributeValue(Name name)
does this only work on Elements?
Specified by:
getAttributeValue in interface Node
Overrides:
getAttributeValue in interface NodeBase

getAttributes

public SafeNodeIterator getAttributes()
does this only work on Elements?
Specified by:
getAttributes in interface Node
Overrides:
getAttributes in interface NodeBase

getName

public Name getName()
Returns element type name for element; attribute name for an attribute; target for a PI.
Specified by:
getName in interface Node
Overrides:
getName in interface NodeBase

getPreserveSpace

public boolean getPreserveSpace()
Overrides:
getPreserveSpace in interface ContainerNode

getType

public byte getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
Specified by:
getType in interface Node