org.apache.tools.ant.types.resources.selectors
Class Compare
- Cloneable, ResourceSelector
ResourceSelector that compares against "control" Resource(s)
using ResourceComparators.
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
add
public void add(ResourceComparator c)
Add a ResourceComparator to this Compare selector.
If multiple ResourceComparators are added, they will be processed in LIFO order.
c
- the ResourceComparator to add.
createControl
public ResourceCollection createControl()
Create the nested control element. These are the
resources to compare against.
dieOnCircularReference
protected void dieOnCircularReference(Stack stk,
Project p)
throws BuildException
Overrides the version from DataType
to recurse on nested ResourceComparators.
- dieOnCircularReference in interface DataType
stk
- the stack of data types to use (recursively).p
- the project to use to dereference the references.
setAgainst
public void setAgainst(Quantifier against)
Set the quantifier to be used. Default "all".
against
- the Quantifier EnumeratedAttribute to use.
setWhen
public void setWhen(Comparison when)
Set the comparison to be used. Default "equal".
when
- the Comparison EnumeratedAttribute to use.