/** * Set whether to reevaluate the set every time the set is used. * Default is true. * * @param dynamic if true, reevaluate the property set each time * the set is used. if false cache the property set * the first time and use the cached set on subsequent * occasions. */ public void setDynamic(boolean dynamic) { assertNotReference(); this.dynamic = dynamic; }
/** * Set whether to negate results. * If "true", all properties not selected by nested elements will be returned. * Default is "false". * @param negate if true, negate the selection criteria. */ public void setNegate(boolean negate) { assertNotReference(); this.negate = negate; }
/** * Add a property reference (nested element) to the references to be used. * @param ref a property reference. */ public void addPropertyref(PropertyRef ref) { assertNotReference(); setChecked(false); ptyRefs.add(ref); }
/** * Add another property set to this set. * @param ref another property set. */ public void addPropertyset(PropertySet ref) { assertNotReference(); setChecked(false); setRefs.add(ref); }
/** * Create a mapper to map the property names. * @return a mapper to be configured. */ public Mapper createMapper() { assertNotReference(); if (mapper != null) { throw new BuildException("Too many <mapper>s!"); } mapper = new Mapper(getProject()); setChecked(false); return mapper; }