org.apache.tools.ant.types.resources
Class Restrict
- Cloneable, ResourceCollection
ResourceCollection that allows a number of selectors to be
applied to a single ResourceCollection for the purposes of
restricting or narrowing results.
void | add(ResourceCollection c)- Add the ResourceCollection.
|
void | add(ResourceSelector s)- Add a ResourceSelector.
|
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 Restrict collection as a String.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes |
add
public void add(ResourceCollection c)
Add the ResourceCollection.
c - the ResourceCollection to add.
isCache
public boolean isCache()
Learn whether to cache collections. Default is true.
isFilesystemOnly
public boolean isFilesystemOnly()
Fulfill the ResourceCollection contract.
- isFilesystemOnly in interface ResourceCollection
- whether this is a filesystem-only resource collection.
iterator
public final Iterator iterator()
Fulfill the ResourceCollection contract.
- iterator in interface ResourceCollection
- an Iterator of Resources.
setCache
public void setCache(boolean b)
Set whether to cache collections.
size
public int size()
Fulfill the ResourceCollection contract.
- size in interface ResourceCollection
- number of elements as int.
toString
public String toString()
Format this Restrict collection as a String.
- toString in interface DataType
- the String value of this collection.