/** * Given a key and a CollectionAttribute, looks up the collection * attribute containing the key. */ public static CollectionAttribute lookupContainer (final String key, final CollectionAttribute startPoint) { return (CollectionAttribute)doLookup(true, key, startPoint); }
/** * Given a key and a CollectionAttribute, looks up the attribute stored in * the collection corresponding to the key. * The key may be a hierarchy of keys separted by dots like in * "customer.name.lastname" or "customers-list.0".<br> * This method is used by openwfe.org.engine.expressions.VariableMap to * replace things like ${f:customer.name} or ${f:customer} by their * actual values. */ public static Attribute lookupAttribute (final String key, final CollectionAttribute startPoint) { //return doLookup(false, key, startPoint); final Attribute a = doLookup(false, key, startPoint); if (a != null) return a; // // returning the key 'literally' return startPoint.cget(key); }
return doLookup (containerLookup, scdr, (CollectionAttribute)newStartPoint);