/** * A dedicated lookupAttribute method, as filter definitions have a special * XML syntax. */ protected String lookupAttribute (final org.jdom.Element elt, final String attributeName, final InFlowWorkItem wi) { final String value = elt.getAttributeValue(attributeName); if (value == null) return null; if (referencesNoVariable(value)) return value; if (log.isDebugEnabled()) log.debug("lookupAttribute() :: >"+value+"<"); try { final VariableMap vMap = new VariableMap (getLauncher().fetchAttributes(this, elt), this, wi); return Text.substitute(value, vMap); } catch (final Exception e) { log.warn("lookupAttribute() problem while fetching attributes", e); return null; } }
public void init (final ApplicationContext context, final FlowExpressionId environmentId, final FlowExpressionId parentId, final FlowExpressionId id, final RawExpression generatingExpression, final Object raw, final InFlowWorkItem currentWi) throws BuildException { setApplicationContext(context); this.setId(id); this.setParent(parentId); this.setEnvironmentId(environmentId); this.setAttributes(getLauncher().fetchAttributes(this, raw)); //this.debugAttributes("init()"); }
getLauncher().fetchAttributes(fe, this.xmlBranch); feParams.putAll(atParams);