com.jclark.xsl.dom

Class TextNode

Implemented Interfaces:
Node, SourceLocator

(package private) class TextNode
extends NodeBase

Field Summary

(package private) StringBuffer
buf
(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

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

Method Summary

String
getData()
Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node;
byte
getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
(package private) void
merge(String value)

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

buf

(package private)  StringBuffer buf

value

(package private)  String value

Constructor Details

TextNode

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

Method Details

getData

public final String getData()
Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node;
Specified by:
getData in interface Node
Overrides:
getData in interface NodeBase

getType

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

merge

(package private)  void merge(String value)