org.oXML.engine
Class InterpretedProgram
java.lang.Object
org.oXML.type.Program
org.oXML.engine.InterpretedProgram
- public class InterpretedProgram
- extends Program
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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()