this.path = path;
this.path = path; this.variables.putAll( variables );
boolean matches = false; JXPathContext context = JXPathContext.newContext(object); if( variables != null ) { populateVariables( context ); } try { Object value = context.getValue( path ); if( value != null ) { matches = true; } } catch( JXPathException e ) { // If this happens there is no match } return matches;
Set keys = variables.keySet(); Iterator keyIter = keys.iterator(); while( keyIter.hasNext() ) { String key = (String) keyIter.next(); context.getVariables().declareVariable( key, variables.get( key ) ); }