|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.stx.Context
public final class Context
Instances of this class provide context information while processing an input document.
Field Summary | |
---|---|
Stack |
ancestorStack
The current ancestor stack |
GroupBase |
currentGroup
The group, the current template is a child of |
NodeBase |
currentInstruction
The currently processed statement in the transformation sheet |
Processor |
currentProcessor
The Processor object (needed by stx:process-buffer ) |
TransformerHandlerResolverImpl |
defaultTransformerHandlerResolver
The default TransformerHandlerResolver |
Emitter |
emitter
The emitter object for the transformation |
ErrorHandlerImpl |
errorHandler
An ErrorHandler for reporting errors and warnings |
Hashtable |
globalParameters
External parameters passed to the transformation |
Hashtable |
groupVars
Hashtable for Stacks of group variables (key=group instance, value=Stack of Hashtables). |
Hashtable |
localVars
Local defined variables of a template. |
Locator |
locator
The locator object for the input stream |
StxEmitter |
messageEmitter
The message emitter for stx:message ,
either explicitely set by Processor.setMessageEmitter(net.sf.joost.emitter.StxEmitter) or
automatically created in the first
MessageFactory.Instance.process(net.sf.joost.stx.Context)
invocation. |
OutputURIResolver |
outputUriResolver
The OutputURIResolver for stx:result-document |
Hashtable |
passedParameters
Parameters passed to the next template |
long |
position
The position of the current node. |
PSiblingsFactory.Instance |
psiblings
Encountered stx:process-siblings instruction |
GroupBase |
targetGroup
The target group, set by stx:process-xxx
instructions |
TransformerHandler |
targetHandler
The target handler, set by stx:process-xxx
instructions |
URIResolver |
uriResolver
The URIResolver for stx:process-document |
Constructor Summary | |
---|---|
Context()
|
Method Summary | |
---|---|
StxEmitter |
popEmitter()
Restore previous emitter after finishing a result event stream |
void |
pushEmitter(Emitter anEmitter)
re-use a previous emitter for the event stream |
void |
pushEmitter(StxEmitter stxEmitter)
Instantiate a new emitter object for a new result event stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Locator locator
public Emitter emitter
public Stack ancestorStack
public long position
public NodeBase currentInstruction
public GroupBase currentGroup
public Processor currentProcessor
stx:process-buffer
)
public GroupBase targetGroup
stx:process-xxx
instructions
public PSiblingsFactory.Instance psiblings
stx:process-siblings
instruction
public Hashtable groupVars
public Hashtable localVars
public Hashtable globalParameters
public Hashtable passedParameters
public ErrorHandlerImpl errorHandler
public TransformerHandlerResolverImpl defaultTransformerHandlerResolver
public TransformerHandler targetHandler
stx:process-xxx
instructions
public URIResolver uriResolver
stx:process-document
public OutputURIResolver outputUriResolver
stx:result-document
public StxEmitter messageEmitter
stx:message
,
either explicitely set by Processor.setMessageEmitter(net.sf.joost.emitter.StxEmitter)
or
automatically created in the first
MessageFactory.Instance.process(net.sf.joost.stx.Context)
invocation.
Constructor Detail |
---|
public Context()
Method Detail |
---|
public void pushEmitter(StxEmitter stxEmitter)
public void pushEmitter(Emitter anEmitter)
public StxEmitter popEmitter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |