org.apache.tools.ant.types.resources
public abstract class AbstractResourceCollectionWrapper extends DataType implements ResourceCollection, Cloneable
Since: Ant 1.8.2
Method Summary | |
---|---|
void | add(ResourceCollection c)
Add a ResourceCollection to the container. |
protected abstract Iterator | createIterator()
Do create an iterator on the resource collection. |
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 ResourceCollection | getResourceCollection()
Get the nested ResourceCollection. |
protected abstract int | getSize()
Do compute the size of the resource collection. |
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.
Returns: the iterator on the resource collection
Parameters: stk the stack of data types to use (recursively). p the project to use to dereference the references.
Throws: BuildException on error.
Returns: a ResourceCollection.
Throws: BuildException if no nested ResourceCollection has been provided.
Returns: size of resource collection.
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
.