public class Compare extends DataType implements ResourceSelector
description, location, project
Constructor and Description |
---|
Compare() |
Modifier and Type | Method and Description |
---|---|
void |
add(ResourceComparator c)
Add a ResourceComparator to this Compare selector.
|
ResourceCollection |
createControl()
Create the nested control element.
|
protected void |
dieOnCircularReference(java.util.Stack stk,
Project p)
Overrides the version from DataType
to recurse on nested ResourceComparators.
|
boolean |
isSelected(Resource r)
Return true if this Resource is selected.
|
void |
setAgainst(Quantifier against)
Set the quantifier to be used.
|
void |
setWhen(Comparison when)
Set the comparison to be used.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void add(ResourceComparator c)
c
- the ResourceComparator to add.public void setAgainst(Quantifier against)
against
- the Quantifier EnumeratedAttribute to use.public void setWhen(Comparison when)
when
- the Comparison EnumeratedAttribute to use.public ResourceCollection createControl()
public boolean isSelected(Resource r)
isSelected
in interface ResourceSelector
r
- the Resource to check.protected void dieOnCircularReference(java.util.Stack stk, Project p) throws BuildException
dieOnCircularReference
in class DataType
stk
- the stack of data types to use (recursively).p
- the project to use to dereference the references.BuildException
- on error.