public void init (final QueryConfiguration conf, final Query parentQuery, final Object o) throws QueryException { final org.jdom.Element elt = (org.jdom.Element)o; this.setName (XmlQueryUtils.lookupAttributeValue(parentQuery, elt, "name")); this.setValue (XmlQueryUtils.lookupAttributeValue(parentQuery, elt, "value")); }
public void init (final QueryConfiguration conf, final Query parentQuery, final Object o) throws QueryException { log.debug("init()"); this.setParentQuery(parentQuery); this.setChildren(new java.util.ArrayList()); XmlQueryUtils.initChildren (conf, parentQuery, getChildren(), (org.jdom.Element)o); }
public void init (final QueryConfiguration conf, final Query parentQuery, final Object o) throws QueryException { this.setParentQuery(parentQuery); this.setChildren(new java.util.ArrayList()); XmlQueryUtils.initChildren (conf, parentQuery, getChildren(), (org.jdom.Element)o); }
/** * The parameter object awaited here is an instance of org.jdom.Element, * its 'name' attribute is then used as the name of the inited scope. */ public void init (final QueryConfiguration conf, final Query parentQuery, final Object o) throws QueryException { final org.jdom.Element elt = (org.jdom.Element)o; this.setParentQuery(parentQuery); final String name = elt.getAttributeValue("name"); final String ref = elt.getAttributeValue("ref"); //this.setName(elt.getName()); this.setName(name); //if (ref != null) // setReference(lookup(ref)); if (ref != null) { setSreference(ref); if (name == null) this.setName("ref::"+ref); } // // taking care of the children XmlQueryUtils.initChildren(conf, this, getItems(), elt); log.debug("init() n>"+name+"< r>"+ref+"<"); log.debug("init() '' children count : "+getItems().size()); }
public void init (final QueryConfiguration conf, final Query parentQuery, final Object o) throws QueryException { final org.jdom.Element elt = (org.jdom.Element)o; this.setName (XmlQueryUtils.lookupAttributeValue(parentQuery, elt, "name")); this.setValue (XmlQueryUtils.lookupAttributeValue(parentQuery, elt, "value")); }