com.jclark.xsl.dom

Class AttributeNode

Implemented Interfaces:
Node, SourceLocator

(package private) class AttributeNode
extends NodeBase

represents an XML Element's Attribute constructed around a W3C level 1 DOM Attribute

Field Summary

(package private) Name
name
(package private) String
value

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, NAMESPACE, N_TYPES, PROCESSING_INSTRUCTION, ROOT, TEXT

Constructor Summary

AttributeNode(Name name, org.w3c.dom.Node domNode, ContainerNode parent, int childIndex)

Method Summary

String
getData()
default behavior -- return null.
SafeNodeIterator
getFollowingSiblings()
as the name implies ...
Name
getName()
default behavior -- return null.
byte
getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT

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

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

Field Details

name

(package private) final Name name

value

(package private)  String value

Constructor Details

AttributeNode

(package private)  AttributeNode(Name name,
                                 org.w3c.dom.Node domNode,
                                 ContainerNode parent,
                                 int childIndex)

Method Details

getData

public final String getData()
default behavior -- return null. Descendant classes override
Specified by:
getData in interface Node
Overrides:
getData in interface NodeBase

getFollowingSiblings

public SafeNodeIterator getFollowingSiblings()
as the name implies ...
Specified by:
getFollowingSiblings in interface Node
Overrides:
getFollowingSiblings in interface NodeBase

getName

public Name getName()
default behavior -- return null. Descendant classes override
Specified by:
getName in interface Node
Overrides:
getName in interface NodeBase

getType

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