org.apache.tools.ant.types.resources
Class Resources
- Cloneable, ResourceCollection
Generic ResourceCollection: Either stores nested ResourceCollections,
making no attempt to remove duplicates, or references another ResourceCollection.
void | add(ResourceCollection c)- Add a ResourceCollection.
|
protected void | dieOnCircularReference(Stack stk, Project p)- Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
|
boolean | isFilesystemOnly()- Fulfill the ResourceCollection contract.
|
Iterator | iterator()- Fulfill the ResourceCollection contract.
|
int | size()- Fulfill the ResourceCollection contract.
|
String | toString()- Format this BaseResourceCollectionContainer as a String.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes |
EMPTY_ITERATOR
public static final Iterator EMPTY_ITERATOR
static empty Iterator
add
public void add(ResourceCollection c)
Add a ResourceCollection.
c - the ResourceCollection to add.
dieOnCircularReference
protected void dieOnCircularReference(Stack stk,
Project p)
throws BuildException Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
- dieOnCircularReference in interface DataType
stk - the stack of data types to use (recursively).p - the project to use to dereference the references.
isFilesystemOnly
public boolean isFilesystemOnly()
Fulfill the ResourceCollection contract.
- isFilesystemOnly in interface ResourceCollection
- true if all Resources represent files.
iterator
public Iterator iterator()
Fulfill the ResourceCollection contract.
- iterator in interface ResourceCollection
- an Iterator of Resources.
size
public int size()
Fulfill the ResourceCollection contract.
- size in interface ResourceCollection
- number of elements as int.
toString
public String toString()
Format this BaseResourceCollectionContainer as a String.
- toString in interface DataType