com.icl.saxon.tree

Class TextImpl

final class TextImpl extends NodeImpl implements Text

A node in the XML parse tree representing character content

Author: Michael H. Kay

Constructor Summary
TextImpl(ParentNodeImpl parent, String content)
Method Summary
voidcopy(Outputter out)
Copy this node to a given outputter
voidcopyStringValue(Outputter out)
Copy the string-value of this node to a given outputter
DocumentInfogetDocumentRoot()
Get the root of the document.
shortgetNodeType()
Return the type of node.
StringgetStringValue()
Return the character value of the node.
voidtruncateToStart()
Delete string content of this and all subsequent nodes.

Constructor Detail

TextImpl

public TextImpl(ParentNodeImpl parent, String content)

Method Detail

copy

public void copy(Outputter out)
Copy this node to a given outputter

copyStringValue

public void copyStringValue(Outputter out)
Copy the string-value of this node to a given outputter

getDocumentRoot

public DocumentInfo getDocumentRoot()
Get the root of the document.

getNodeType

public final short getNodeType()
Return the type of node.

Returns: Node.TEXT

getStringValue

public String getStringValue()
Return the character value of the node.

Returns: the string value of the node

truncateToStart

public void truncateToStart()
Delete string content of this and all subsequent nodes. For use when deleting an element in preview mode