net.sf.joost.instruction
Class NodeBase.End
java.lang.Object
net.sf.joost.instruction.AbstractInstruction
net.sf.joost.instruction.NodeBase.End
- 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:
- the node this instruction belongs to
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
toString
public String toString()