Methods Summary |
---|
public void | add(ResourceSelector s)Add a ResourceSelector to the container.
if (isReference()) {
throw noChildrenAllowed();
}
if (s == null) {
return;
}
v.add(s);
setChecked(false);
|
protected void | dieOnCircularReference(java.util.Stack stk, org.apache.tools.ant.Project p)Overrides the version from DataType to recurse on nested ResourceSelectors.
if (isChecked()) {
return;
}
if (isReference()) {
super.dieOnCircularReference(stk, p);
} else {
for (Iterator i = v.iterator(); i.hasNext();) {
Object o = i.next();
if (o instanceof DataType) {
stk.push(o);
invokeCircularReferenceCheck((DataType) o, stk, p);
}
}
setChecked(true);
}
|
public java.util.Iterator | getSelectors()Return an Iterator over the nested selectors.
if (isReference()) {
return ((ResourceSelectorContainer) getCheckedRef()).getSelectors();
}
dieOnCircularReference();
return Collections.unmodifiableList(v).iterator();
|
public boolean | hasSelectors()Learn whether this ResourceSelectorContainer has selectors.
if (isReference()) {
return ((ResourceSelectorContainer) getCheckedRef()).hasSelectors();
}
dieOnCircularReference();
return !v.isEmpty();
|
public int | selectorCount()Get the count of nested selectors.
if (isReference()) {
return ((ResourceSelectorContainer) getCheckedRef()).selectorCount();
}
dieOnCircularReference();
return v.size();
|