net.sf.joost.instruction
Class NodeBase.End
java.lang.Object
net.sf.joost.instruction.AbstractInstruction
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.
start
private NodeBase start
- The appropriate start tag.
NodeBase.End
private NodeBase.End(NodeBase start)
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 clonescopies
- the map of already copied objects
toString
public String toString()
- Overrides:
toString
in class Object