net.sf.joost.instruction
Class TextNode
java.lang.Object
net.sf.joost.instruction.AbstractInstruction
net.sf.joost.instruction.NodeBase
net.sf.joost.instruction.TextNode
- All Implemented Interfaces:
- Cloneable, Constants
public class TextNode
- extends NodeBase
Instances created by this factory represent text nodes in the
transformation sheet
- Version:
- $Revision: 2.3 $ $Date: 2006/02/27 19:47:18 $
- Author:
- Oliver Becker
Fields inherited from interface net.sf.joost.Constants |
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
Methods inherited from class net.sf.joost.instruction.NodeBase |
compile, declareVariable, getNode, getNodeEnd, insert, mayDropEnd, onDeepCopy, processable, processEnd, setEndLocation, toString |
string
private String string
TextNode
public TextNode(String s,
NodeBase parent,
ParseContext context)
process
public short process(Context context)
throws SAXException
- Emit the text of this node to the result stream
- Overrides:
process
in class NodeBase
- Parameters:
context
- the current context
- Returns:
Constants.PR_CONTINUE
- Throws:
SAXException
- if an error occurs (in a derived class)
isWhitespaceNode
public boolean isWhitespaceNode()
- Returns:
true
if this text node contains only
white space characters, otherwise false
getContents
public String getContents()
- Returns:
- the text content of this node.