org.apache.tools.ant.types.resources
public abstract class BaseResourceCollectionWrapper extends DataType implements ResourceCollection, Cloneable
Since: Ant 1.7
Method Summary | |
---|---|
void | add(ResourceCollection c)
Add a ResourceCollection to the container. |
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 of Resources. |
protected ResourceCollection | getResourceCollection()
Get the nested ResourceCollection. |
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 BaseResourceCollectionWrapper as a String. |
Parameters: c the ResourceCollection to add.
Throws: BuildException on error.
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: a ResourceCollection.
Throws: BuildException if no nested ResourceCollection has been provided.
true
.Returns: boolean cache flag.
Returns: whether this is a filesystem-only resource collection.
Returns: an Iterator of Resources.
Parameters: b boolean cache flag.
Returns: number of elements as int.
Returns: a descriptive String
.