org.oXML.engine
Class InterpretedProgram

java.lang.Object
  extended byorg.oXML.type.Program
      extended byorg.oXML.engine.InterpretedProgram

public class InterpretedProgram
extends Program


Constructor Summary
InterpretedProgram(org.xml.sax.InputSource in)
           
InterpretedProgram(java.lang.String filename)
          constructor that reads a program from file
InterpretedProgram(java.lang.String systemId, org.w3c.dom.Document xml)
           
 
Method Summary
 void addExtension(LanguageExtension extension)
           
 void compile()
           
 Template compile(CompilationContext env)
           
 boolean compiled()
           
 java.lang.String getContentType()
           
 Node getParameter(Name name)
           
 Name[] getParameterNames()
           
 Node run(RuntimeContext env)
           
 void setMapping(Name name, TemplateMapping mapping)
           
 void setParameter(Name name, Node value)
           
 java.lang.String toString()
           
 
Methods inherited from class org.oXML.type.Program
addFunction, addModule, addType, getResolver, getSystemId, getType, run, run, run, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterpretedProgram

public InterpretedProgram(org.xml.sax.InputSource in)
                   throws java.io.IOException,
                          org.xml.sax.SAXException

InterpretedProgram

public InterpretedProgram(java.lang.String filename)
                   throws java.io.IOException,
                          org.xml.sax.SAXException
constructor that reads a program from file

Parameters:
filename - identifier of the xml file

InterpretedProgram

public InterpretedProgram(java.lang.String systemId,
                          org.w3c.dom.Document xml)
Method Detail

addExtension

public void addExtension(LanguageExtension extension)
                  throws ObjectBoxException
Throws:
ObjectBoxException

getParameterNames

public Name[] getParameterNames()
                         throws ObjectBoxException
Throws:
ObjectBoxException

setParameter

public void setParameter(Name name,
                         Node value)
                  throws ObjectBoxException
Throws:
ObjectBoxException

getParameter

public Node getParameter(Name name)
                  throws ObjectBoxException
Throws:
ObjectBoxException

getContentType

public java.lang.String getContentType()

setMapping

public void setMapping(Name name,
                       TemplateMapping mapping)

compile

public void compile()
             throws java.io.IOException,
                    org.xml.sax.SAXException,
                    ObjectBoxException
Throws:
java.io.IOException
org.xml.sax.SAXException
ObjectBoxException

compile

public Template compile(CompilationContext env)
                 throws java.io.IOException,
                        org.xml.sax.SAXException,
                        ObjectBoxException
Throws:
java.io.IOException
org.xml.sax.SAXException
ObjectBoxException

compiled

public boolean compiled()
Returns:
true if this program has been compiled, false otherwise

run

public Node run(RuntimeContext env)
         throws ObjectBoxException
Specified by:
run in class Program
Throws:
ObjectBoxException

toString

public java.lang.String toString()