public class DelegatedResourceComparator extends ResourceComparator
description, location, project
Constructor and Description |
---|
DelegatedResourceComparator() |
Modifier and Type | Method and Description |
---|---|
void |
add(ResourceComparator c)
Add a delegate ResourceComparator.
|
protected void |
dieOnCircularReference(java.util.Stack stk,
Project p)
Overrides the version from DataType to recurse on nested ResourceSelector
s.
|
boolean |
equals(java.lang.Object o)
Equality method based on the vector of resources,
or if a reference, the referredto object.
|
int |
hashCode()
Hashcode based on the rules for equality.
|
protected int |
resourceCompare(Resource foo,
Resource bar)
Compare two Resources.
|
compare
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 next delegate ResourceComparator.public boolean equals(java.lang.Object o)
equals
in interface java.util.Comparator
equals
in class ResourceComparator
o
- the object to check against.public int hashCode()
hashCode
in class ResourceComparator
protected int resourceCompare(Resource foo, Resource bar)
resourceCompare
in class ResourceComparator
foo
- the first Resource.bar
- the second Resource.protected void dieOnCircularReference(java.util.Stack stk, Project p) throws BuildException
dieOnCircularReference
in class DataType
stk
- the Stack of references.p
- the Project to resolve against.BuildException
- on error.