net.sf.saxon.tree

Class CommentImpl

final class CommentImpl extends NodeImpl

CommentImpl is an implementation of a Comment node

Author: Michael H. Kay

Field Summary
Stringcomment
Constructor Summary
CommentImpl(String content)
Method Summary
Valueatomize()
Get the typed value of this node.
voidcopy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter
intgetNodeKind()
StringgetStringValue()
SequenceIteratorgetTypedValue()
Get the typed value of this node.
voidreplaceStringValue(CharSequence stringValue)
Replace the string-value of this node

Field Detail

comment

String comment

Constructor Detail

CommentImpl

public CommentImpl(String content)

Method Detail

atomize

public Value atomize()
Get the typed value of this node. Returns the string value, as an instance of xs:string

copy

public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter

getNodeKind

public final int getNodeKind()

getStringValue

public final String getStringValue()

getTypedValue

public SequenceIterator getTypedValue()
Get the typed value of this node. Returns the string value, as an instance of xs:string

replaceStringValue

public void replaceStringValue(CharSequence stringValue)
Replace the string-value of this node

Parameters: stringValue the new string value