List of usage examples for org.apache.commons.jxpath Variables undeclareVariable
void undeclareVariable(String varName);
From source file:org.chiba.xml.xforms.xpath.CoreExtensionFunctions.java
/** * Undeclares the specified variable an returns its value. * * @param expressionContext the expression context. * @param name the name of the variable. * @return the value of the variable.//from w w w . jav a 2 s . c o m */ public static Object undeclare(ExpressionContext expressionContext, String name) { Variables variables = expressionContext.getJXPathContext().getVariables(); Object value = variables.getVariable(name); variables.undeclareVariable(name); return value; }