org.apache.tools.ant.types.resources.selectors
Class ResourceSelectorContainer
- Cloneable
public class ResourceSelectorContainer
ResourceSelector container.
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
ResourceSelectorContainer
public ResourceSelectorContainer()
Default constructor.
ResourceSelectorContainer
public ResourceSelectorContainer(ResourceSelector[] r)
Construct a new ResourceSelectorContainer with the specified array of selectors.
r
- the ResourceSelector[] to add.
add
public void add(ResourceSelector s)
Add a ResourceSelector to the container.
s
- the ResourceSelector to add.
dieOnCircularReference
protected void dieOnCircularReference(Stack stk,
Project p)
throws BuildException
Overrides the version from DataType to recurse on nested ResourceSelectors.
- dieOnCircularReference in interface DataType
stk
- the Stack of references.p
- the Project to resolve against.
getSelectors
public Iterator getSelectors()
Return an Iterator over the nested selectors.
- Iterator of ResourceSelectors.
hasSelectors
public boolean hasSelectors()
Learn whether this ResourceSelectorContainer has selectors.
- boolean indicating whether selectors have been added to the container.
selectorCount
public int selectorCount()
Get the count of nested selectors.
- the selector count as int.