org.apache.ode.bpel.runtime
Class ExprEvaluationContextImpl

java.lang.Object
  extended by org.apache.ode.bpel.runtime.ExprEvaluationContextImpl
All Implemented Interfaces:
org.apache.ode.bpel.explang.EvaluationContext

public class ExprEvaluationContextImpl
extends java.lang.Object
implements org.apache.ode.bpel.explang.EvaluationContext

The context in which BPEL expressions are evaluated. This class is handed of the OExpression instances to provide access to variables, link statuses, and the like.


Constructor Summary
ExprEvaluationContextImpl(org.apache.ode.bpel.runtime.ScopeFrame scopeInstace, BpelRuntimeContext ntv)
           
ExprEvaluationContextImpl(org.apache.ode.bpel.runtime.ScopeFrame scopeInstnce, BpelRuntimeContext ntv, java.util.Map<org.apache.ode.bpel.o.OLink,java.lang.Boolean> linkVals)
           
ExprEvaluationContextImpl(org.apache.ode.bpel.runtime.ScopeFrame scopeInstace, BpelRuntimeContext ntv, org.w3c.dom.Node root)
           
 
Method Summary
 org.w3c.dom.Node evaluateQuery(org.w3c.dom.Node root, org.apache.ode.bpel.o.OExpression expr)
           
 java.net.URI getBaseResourceURI()
           
 java.util.Date getCurrentEventDateTime()
           
 org.w3c.dom.Node getPartData(org.w3c.dom.Element message, org.apache.ode.bpel.o.OMessageVarType.Part part)
           
 java.lang.Long getProcessId()
           
 javax.xml.namespace.QName getProcessQName()
           
 org.w3c.dom.Node getPropertyValue(javax.xml.namespace.QName propertyName)
           
 org.w3c.dom.Node getRootNode()
           
 boolean isLinkActive(org.apache.ode.bpel.o.OLink olink)
           
 boolean narrowTypes()
           
 java.lang.String readMessageProperty(org.apache.ode.bpel.o.OScope.Variable variable, org.apache.ode.bpel.o.OProcess.OProperty property)
           
 org.w3c.dom.Node readVariable(org.apache.ode.bpel.o.OScope.Variable variable, org.apache.ode.bpel.o.OMessageVarType.Part part)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExprEvaluationContextImpl

public ExprEvaluationContextImpl(org.apache.ode.bpel.runtime.ScopeFrame scopeInstace,
                                 BpelRuntimeContext ntv)

ExprEvaluationContextImpl

public ExprEvaluationContextImpl(org.apache.ode.bpel.runtime.ScopeFrame scopeInstace,
                                 BpelRuntimeContext ntv,
                                 org.w3c.dom.Node root)

ExprEvaluationContextImpl

public ExprEvaluationContextImpl(org.apache.ode.bpel.runtime.ScopeFrame scopeInstnce,
                                 BpelRuntimeContext ntv,
                                 java.util.Map<org.apache.ode.bpel.o.OLink,java.lang.Boolean> linkVals)
Method Detail

readVariable

public org.w3c.dom.Node readVariable(org.apache.ode.bpel.o.OScope.Variable variable,
                                     org.apache.ode.bpel.o.OMessageVarType.Part part)
                              throws org.apache.ode.bpel.common.FaultException
Specified by:
readVariable in interface org.apache.ode.bpel.explang.EvaluationContext
Throws:
org.apache.ode.bpel.common.FaultException

evaluateQuery

public org.w3c.dom.Node evaluateQuery(org.w3c.dom.Node root,
                                      org.apache.ode.bpel.o.OExpression expr)
                               throws org.apache.ode.bpel.common.FaultException,
                                      org.apache.ode.bpel.explang.EvaluationException
Specified by:
evaluateQuery in interface org.apache.ode.bpel.explang.EvaluationContext
Throws:
org.apache.ode.bpel.common.FaultException
org.apache.ode.bpel.explang.EvaluationException

readMessageProperty

public java.lang.String readMessageProperty(org.apache.ode.bpel.o.OScope.Variable variable,
                                            org.apache.ode.bpel.o.OProcess.OProperty property)
                                     throws org.apache.ode.bpel.common.FaultException
Specified by:
readMessageProperty in interface org.apache.ode.bpel.explang.EvaluationContext
Throws:
org.apache.ode.bpel.common.FaultException

isLinkActive

public boolean isLinkActive(org.apache.ode.bpel.o.OLink olink)
                     throws org.apache.ode.bpel.common.FaultException
Specified by:
isLinkActive in interface org.apache.ode.bpel.explang.EvaluationContext
Throws:
org.apache.ode.bpel.common.FaultException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRootNode

public org.w3c.dom.Node getRootNode()
Specified by:
getRootNode in interface org.apache.ode.bpel.explang.EvaluationContext

getPartData

public org.w3c.dom.Node getPartData(org.w3c.dom.Element message,
                                    org.apache.ode.bpel.o.OMessageVarType.Part part)
                             throws org.apache.ode.bpel.common.FaultException
Specified by:
getPartData in interface org.apache.ode.bpel.explang.EvaluationContext
Throws:
org.apache.ode.bpel.common.FaultException

getProcessId

public java.lang.Long getProcessId()
Specified by:
getProcessId in interface org.apache.ode.bpel.explang.EvaluationContext

narrowTypes

public boolean narrowTypes()
Specified by:
narrowTypes in interface org.apache.ode.bpel.explang.EvaluationContext

getBaseResourceURI

public java.net.URI getBaseResourceURI()
Specified by:
getBaseResourceURI in interface org.apache.ode.bpel.explang.EvaluationContext

getPropertyValue

public org.w3c.dom.Node getPropertyValue(javax.xml.namespace.QName propertyName)
Specified by:
getPropertyValue in interface org.apache.ode.bpel.explang.EvaluationContext

getProcessQName

public javax.xml.namespace.QName getProcessQName()
Specified by:
getProcessQName in interface org.apache.ode.bpel.explang.EvaluationContext

getCurrentEventDateTime

public java.util.Date getCurrentEventDateTime()
Specified by:
getCurrentEventDateTime in interface org.apache.ode.bpel.explang.EvaluationContext