org.apache.tools.ant.types

Interface ResourceCollection

public interface ResourceCollection

Interface describing a collection of Resources.

Since: Ant 1.7

Method Summary
booleanisFilesystemOnly()
Indicate whether this ResourceCollection is composed entirely of Resources accessible via local filesystem conventions.
Iteratoriterator()
Get an Iterator over the contents of this ResourceCollection, whose elements are org.apache.tools.ant.types.Resource instances.
intsize()
Learn the number of contained Resources.

Method Detail

isFilesystemOnly

public boolean isFilesystemOnly()
Indicate whether this ResourceCollection is composed entirely of Resources accessible via local filesystem conventions. If true, all Resources returned from this ResourceCollection should be instances of FileResource.

Returns: whether this is a filesystem-only resource collection.

iterator

public Iterator iterator()
Get an Iterator over the contents of this ResourceCollection, whose elements are org.apache.tools.ant.types.Resource instances.

Returns: an Iterator of Resources.

size

public int size()
Learn the number of contained Resources.

Returns: number of elements as int.