org.apache.joran
Class ExecutionContext
java.lang.Object
|
+--org.apache.joran.ExecutionContext
- public class ExecutionContext
- extends java.lang.Object
The ExecutionContext contains the contextual state of a Joran parsing
session. Actions
depend on this
context to exchange and store information.
- Author:
- Ceki Gülcü
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutionContext
public ExecutionContext(Interpreter joranInterpreter)
addError
public void addError(ErrorItem errorItem)
getErrorList
public java.util.List getErrorList()
getLocator
public Locator getLocator()
getJoranInterpreter
public Interpreter getJoranInterpreter()
getObjectStack
public java.util.Stack getObjectStack()
peekObject
public java.lang.Object peekObject()
pushObject
public void pushObject(java.lang.Object o)
popObject
public java.lang.Object popObject()
getObject
public java.lang.Object getObject(int i)
getObjectMap
public java.util.HashMap getObjectMap()
addProperty
public void addProperty(java.lang.String key,
java.lang.String value)
- Add a property to the properties of this execution context.
If the property exists already, it is overwritten.
addProperties
public void addProperties(java.util.Properties props)
getSubstitutionProperty
public java.lang.String getSubstitutionProperty(java.lang.String key)
subst
public java.lang.String subst(java.lang.String value)
Copyright 2000-2003 Apache Software Foundation.