net.sf.joost.instruction
Class TextNode

java.lang.Object
  extended bynet.sf.joost.instruction.AbstractInstruction
      extended bynet.sf.joost.instruction.NodeBase
          extended bynet.sf.joost.instruction.TextNode
All Implemented Interfaces:
Constants

public class TextNode
extends NodeBase

Instances created by this factory represent text nodes in the transformation sheet

Version:
$Revision: 2.2 $ $Date: 2004/10/30 11:23:52 $
Author:
Oliver Becker

Nested Class Summary
 
Nested classes inherited from class net.sf.joost.instruction.NodeBase
NodeBase.End
 
Field Summary
private  String string
           
 
Fields inherited from class net.sf.joost.instruction.NodeBase
lastChild, localFieldStack, nodeEnd, parent, preserveSpace, publicId, qName, scopedVariables, systemId
 
Fields inherited from class net.sf.joost.instruction.AbstractInstruction
colNo, lineNo, next
 
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
 
Constructor Summary
TextNode(String s, NodeBase parent, ParseContext context)
           
 
Method Summary
 boolean isWhitespaceNode()
           
 short process(Context context)
          Emit the text of this node to the result stream
 
Methods inherited from class net.sf.joost.instruction.NodeBase
compile, declareVariable, getNode, getNodeEnd, insert, processable, processEnd, setEndLocation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

string

private String string
Constructor Detail

TextNode

public TextNode(String s,
                NodeBase parent,
                ParseContext context)
Method Detail

process

public short process(Context context)
              throws SAXException
Emit the text of this node to the result stream

Overrides:
process in class NodeBase
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