net.sf.joost.stx
Class ParseContext

java.lang.Object
  extended by net.sf.joost.stx.ParseContext

public final class ParseContext
extends Object

Instances of this class provide context information while parsing an STX document.

Version:
$Revision: 2.11 $ $Date: 2006/03/21 19:25:08 $
Author:
Oliver Becker

Field Summary
 boolean allowExternalFunctions
          Are calls on Java extension functions allowed?
private  ErrorHandler errorHandler
          The error handler for the parser
private  net.sf.joost.stx.function.FunctionFactory functionFactory
          The function table for maintaining function definitions, especially of the script functions
 Locator locator
          The locator object for the input stream
 Hashtable nsSet
          The set of namespaces currently in scope
 ParserListener parserListener
          An optional ParserListener for stx:include instructions
 TransformFactory.Instance transformNode
          The root element of the transform sheet
 URIResolver uriResolver
          The URI resolver for stx:include instructions
 
Constructor Summary
ParseContext()
          Default constructor
ParseContext(ParseContext pContext)
          Copy constructor
 
Method Summary
 ErrorHandler getErrorHandler()
          Returns (and constructs if necessary) an error handler
 net.sf.joost.stx.function.FunctionFactory getFunctionFactory()
           
 void setErrorListener(ErrorListener errorListener)
          Sets an error listener that will be used to construct an error handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locator

public Locator locator
The locator object for the input stream


nsSet

public Hashtable nsSet
The set of namespaces currently in scope


errorHandler

private ErrorHandler errorHandler
The error handler for the parser


uriResolver

public URIResolver uriResolver
The URI resolver for stx:include instructions


parserListener

public ParserListener parserListener
An optional ParserListener for stx:include instructions


transformNode

public TransformFactory.Instance transformNode
The root element of the transform sheet


allowExternalFunctions

public boolean allowExternalFunctions
Are calls on Java extension functions allowed?


functionFactory

private net.sf.joost.stx.function.FunctionFactory functionFactory
The function table for maintaining function definitions, especially of the script functions

Constructor Detail

ParseContext

public ParseContext()
Default constructor


ParseContext

public ParseContext(ParseContext pContext)
Copy constructor

Method Detail

getErrorHandler

public ErrorHandler getErrorHandler()
Returns (and constructs if necessary) an error handler


setErrorListener

public void setErrorListener(ErrorListener errorListener)
Sets an error listener that will be used to construct an error handler


getFunctionFactory

public net.sf.joost.stx.function.FunctionFactory getFunctionFactory()