tomp.xtcl
Class Context

java.lang.Object
  extended bytomp.xtcl.Context

public class Context
extends java.lang.Object


Field Summary
static java.lang.Class uriResolverClass
           
 
Constructor Summary
Context()
          Creates a new instance of Context
Context(Context p)
          Creates a new instance of Context
Context(java.io.PrintStream o)
          Creates a new instance of Context
 
Method Summary
 void dump(boolean deep)
           
 void dumpAll(boolean deep)
           
 void dumpVariable(java.lang.Object k)
           
 java.lang.Object get(java.lang.Object ref)
          Gets an object from Context - if not found here, recursively recursively calls get on previous Context
 XTCompiler getCompiler()
           
 int getDepth()
          returns the context's depth
 javax.xml.parsers.DocumentBuilder getDocumentBuilder()
           
 javax.xml.transform.Transformer getEmptyTransformer()
           
 java.io.File getFile(java.lang.String f)
           
 net.sf.joost.trax.TransformerFactoryImpl getJoostTransformerFactory()
           
 java.io.PrintStream getOut()
           
 Context getPrevious()
          returns the previous context
 java.io.File getRealPath()
           
 javax.xml.parsers.SAXParserFactory getSAXParserFactory()
           
 javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
           
 XTFilterFactory getXTFilterFactory()
           
 XTSourceFactory getXTSourceFactory()
           
 boolean isStrictPassing()
           
 void put(java.lang.Object ref, java.lang.Object value)
           
 void setCompiler(XTCompiler c)
           
 void setOut(java.io.PrintStream o)
           
 void setRealPath(java.io.File f)
           
 void setStrictPassing(boolean b)
          Sets the parameter passing to be strict
 void setXTFilterFactory(XTFilterFactory f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriResolverClass

public static final java.lang.Class uriResolverClass
Constructor Detail

Context

public Context()
        throws javax.xml.parsers.ParserConfigurationException,
               javax.xml.transform.TransformerConfigurationException
Creates a new instance of Context


Context

public Context(java.io.PrintStream o)
        throws javax.xml.parsers.ParserConfigurationException,
               javax.xml.transform.TransformerConfigurationException,
               java.io.UnsupportedEncodingException
Creates a new instance of Context


Context

public Context(Context p)
        throws javax.xml.parsers.ParserConfigurationException,
               javax.xml.transform.TransformerConfigurationException
Creates a new instance of Context

Method Detail

setOut

public void setOut(java.io.PrintStream o)

setXTFilterFactory

public void setXTFilterFactory(XTFilterFactory f)

getXTFilterFactory

public XTFilterFactory getXTFilterFactory()

getXTSourceFactory

public XTSourceFactory getXTSourceFactory()

setRealPath

public void setRealPath(java.io.File f)

getRealPath

public java.io.File getRealPath()

getFile

public java.io.File getFile(java.lang.String f)

isStrictPassing

public boolean isStrictPassing()

setStrictPassing

public void setStrictPassing(boolean b)
Sets the parameter passing to be strict


getPrevious

public Context getPrevious()
returns the previous context


getDepth

public int getDepth()
returns the context's depth


get

public java.lang.Object get(java.lang.Object ref)
Gets an object from Context - if not found here, recursively recursively calls get on previous Context

Parameters:
ref - the key
Returns:
the object found or null

put

public void put(java.lang.Object ref,
                java.lang.Object value)

getDocumentBuilder

public javax.xml.parsers.DocumentBuilder getDocumentBuilder()

getTransformerFactory

public javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()

getSAXParserFactory

public javax.xml.parsers.SAXParserFactory getSAXParserFactory()

getJoostTransformerFactory

public net.sf.joost.trax.TransformerFactoryImpl getJoostTransformerFactory()

getEmptyTransformer

public javax.xml.transform.Transformer getEmptyTransformer()

getOut

public java.io.PrintStream getOut()

getCompiler

public XTCompiler getCompiler()

setCompiler

public void setCompiler(XTCompiler c)

dumpVariable

public void dumpVariable(java.lang.Object k)
                  throws java.lang.Exception
Throws:
java.lang.Exception

dump

public void dump(boolean deep)
          throws java.lang.Exception
Throws:
java.lang.Exception

dumpAll

public void dumpAll(boolean deep)
             throws java.lang.Exception
Throws:
java.lang.Exception