org.apache.tools.ant.types.resources
public abstract class BaseResourceCollectionContainer extends DataType implements ResourceCollection, Cloneable
Since: Ant 1.7
Method Summary | |
---|---|
void | add(ResourceCollection c)
Add a ResourceCollection to the container. |
void | addAll(Collection c)
Add the Collection of ResourceCollections to the container. |
void | clear()
Clear the container. |
Object | clone()
Implement clone. |
protected void | dieOnCircularReference(Stack stk, Project p)
Overrides the version of DataType to recurse on all DataType
child elements that may have been added. |
protected abstract Collection | getCollection()
Template method for subclasses to return a Collection object of Resources. |
protected List | getResourceCollections()
Get the nested ResourceCollections. |
boolean | isCache()
Learn whether to cache collections. |
boolean | isFilesystemOnly()
Fulfill the ResourceCollection contract. |
Iterator | iterator()
Fulfill the ResourceCollection contract. |
void | setCache(boolean b)
Set whether to cache collections. |
int | size()
Fulfill the ResourceCollection contract. |
String | toString()
Format this BaseResourceCollectionContainer as a String. |
Parameters: c the ResourceCollection to add.
Throws: BuildException on error.
Parameters: c the Collection whose elements to add.
Throws: BuildException on error.
Throws: BuildException on error.
Returns: a cloned instance.
Parameters: stk the stack of data types to use (recursively). p the project to use to dereference the references.
Throws: BuildException on error.
Returns: Collection.
Returns: List.
true
.Returns: boolean cache flag.
Returns: whether this is a filesystem-only resource collection.
Returns: a "fail-fast" Iterator.
Parameters: b boolean cache flag.
Returns: number of elements as int.
Returns: a descriptive String
.