net.sf.joost.instruction
Class NodeBase.End

java.lang.Object
  extended by net.sf.joost.instruction.AbstractInstruction
      extended by net.sf.joost.instruction.NodeBase.End
All Implemented Interfaces:
Cloneable
Enclosing class:
NodeBase

public final class NodeBase.End
extends AbstractInstruction

Generic class that represents the end of an element in the STX transformation sheet (the end tag). Its process(net.sf.joost.stx.Context) method simply calls NodeBase.processEnd(Context context) in the appropriate NodeBase object.


Field Summary
private  NodeBase start
          The appropriate start tag.
 
Fields inherited from class net.sf.joost.instruction.AbstractInstruction
colNo, lineNo, next
 
Constructor Summary
private NodeBase.End(NodeBase start)
           
 
Method Summary
 NodeBase getNode()
           
protected  void onDeepCopy(AbstractInstruction copy, HashMap copies)
          Callback that will be called when a clone of this instance has been created.
 short process(Context context)
          Calls the NodeBase.processEnd(net.sf.joost.stx.Context) method in its start object.
 String 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

start

private NodeBase start
The appropriate start tag.

Constructor Detail

NodeBase.End

private NodeBase.End(NodeBase start)
Method Detail

getNode

public NodeBase getNode()
Specified by:
getNode in class AbstractInstruction
Returns:
start

process

public short process(Context context)
              throws SAXException
Calls the NodeBase.processEnd(net.sf.joost.stx.Context) method in its start object.

Specified by:
process in class AbstractInstruction
Parameters:
context - the current context
Returns:
Constants.PR_CONTINUE, when the processing should continue with the next node; otherwise when the processing should be suspended due to an stx:process-xxx instruction. This in turn means that only the implementations for these stx:process-xxx instructions must return a value other than PR_CONTINUE. (Exception from the rule: non-recoverable errors)
Throws:
SAXException

onDeepCopy

protected void onDeepCopy(AbstractInstruction copy,
                          HashMap copies)
Description copied from class: AbstractInstruction
Callback that will be called when a clone of this instance has been created. To be overridden in subclasses.

Overrides:
onDeepCopy in class AbstractInstruction
Parameters:
copy - the created clones
copies - the map of already copied objects

toString

public String toString()
Overrides:
toString in class Object