com.plotnix.jex.jxpath
Class JXPathVariables

java.lang.Object
  |
  +--com.plotnix.jex.jxpath.JXPathVariables
All Implemented Interfaces:
org.apache.commons.jxpath.Variables

public class JXPathVariables
extends java.lang.Object
implements org.apache.commons.jxpath.Variables

Wraps Jex variables into JXPath variables. This object points to a Jex context and works with variables from that context.

If Jex becomes a part of Jakarta, JXPath will change to implement Jex interfaces directly. At that point the need for this adaptor will disappear.

Version:
$Revision$
Author:
Dmitri Plotnikov

Constructor Summary
JXPathVariables(Context context)
           
 
Method Summary
 void declareVariable(java.lang.String varName, java.lang.Object value)
           
 java.lang.Object getVariable(java.lang.String varName)
           
 boolean isDeclaredVariable(java.lang.String varName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXPathVariables

public JXPathVariables(Context context)
Parameters:
context - is the Jex context that hosts the variables represented by the new object.
Method Detail

isDeclaredVariable

public boolean isDeclaredVariable(java.lang.String varName)
Specified by:
isDeclaredVariable in interface org.apache.commons.jxpath.Variables
See Also:
Variables.isDeclaredVariable(String)

getVariable

public java.lang.Object getVariable(java.lang.String varName)
Specified by:
getVariable in interface org.apache.commons.jxpath.Variables
See Also:
Variables.getVariable(String)

declareVariable

public void declareVariable(java.lang.String varName,
                            java.lang.Object value)
Specified by:
declareVariable in interface org.apache.commons.jxpath.Variables
See Also:
Variables.declareVariable(String, Object)


Copyright (c) 2002 - Plotnix, Inc