net.sf.joost.instruction
Class TextNode

java.lang.Object
  extended by net.sf.joost.instruction.AbstractInstruction
      extended by net.sf.joost.instruction.NodeBase
          extended by 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

Nested Class Summary
 
Nested classes/interfaces 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
 String getContents()
           
 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, mayDropEnd, onDeepCopy, processable, processEnd, setEndLocation, toString
 
Methods inherited from class net.sf.joost.instruction.AbstractInstruction
deepCopy, deepHashtableCopy, deepTemplateArrayCopy
 
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
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.