org.apache.ode.bpel.compiler.v2.xpath20
Class JaxpVariableResolver

java.lang.Object
  extended by org.apache.ode.bpel.compiler.v2.xpath20.JaxpVariableResolver
All Implemented Interfaces:
javax.xml.xpath.XPathVariableResolver

public class JaxpVariableResolver
extends java.lang.Object
implements javax.xml.xpath.XPathVariableResolver

This is a mock implementation of the XPathVariableResolver for compilation. It always returns an empty string which allows execution of XPath expressions even if we don't have any values yet. This way we can easily rule out invalid variables and isolate properly BPEL variables.


Constructor Summary
JaxpVariableResolver(CompilerContext cctx, OXPath10ExpressionBPEL20 oxpath)
           
 
Method Summary
 java.lang.Object resolveVariable(javax.xml.namespace.QName variableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxpVariableResolver

public JaxpVariableResolver(CompilerContext cctx,
                            OXPath10ExpressionBPEL20 oxpath)
Method Detail

resolveVariable

public java.lang.Object resolveVariable(javax.xml.namespace.QName variableName)
Specified by:
resolveVariable in interface javax.xml.xpath.XPathVariableResolver