| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.resources.selectors.ResourceSelectorContainer
org.apache.tools.ant.types.resources.Restrict
public class Restrict
ResourceCollection that allows a number of selectors to be applied to a single ResourceCollection for the purposes of restricting or narrowing results.
| Field Summary | 
|---|
| Fields inherited from class org.apache.tools.ant.types.DataType | 
|---|
| checked, ref | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| description, location, project | 
| Constructor Summary | |
|---|---|
| Restrict() | |
| Method Summary | |
|---|---|
|  void | add(ResourceCollection c)Add the ResourceCollection. | 
|  void | add(ResourceSelector s)Add a ResourceSelector. | 
| protected  void | dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
                       Project p)Overrides the version from DataType to recurse on nested ResourceSelectors. | 
|  boolean | isCache()Learn whether to cache collections. | 
|  boolean | isFilesystemOnly()Fulfill the ResourceCollection contract. | 
|  java.util.Iterator<Resource> | iterator()Fulfill the ResourceCollection contract. | 
|  void | setCache(boolean b)Set whether to cache collections. | 
|  int | size()Fulfill the ResourceCollection contract. | 
|  java.lang.String | toString()Format this Restrict collection as a String. | 
| Methods inherited from class org.apache.tools.ant.types.resources.selectors.ResourceSelectorContainer | 
|---|
| getSelectors, hasSelectors, selectorCount | 
| Methods inherited from class org.apache.tools.ant.types.DataType | 
|---|
| checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Restrict()
| Method Detail | 
|---|
public void add(ResourceCollection c)
c - the ResourceCollection to add.public void setCache(boolean b)
b - boolean cache flag.public boolean isCache()
true.
public void add(ResourceSelector s)
add in class ResourceSelectorContainers - the ResourceSelector to add.public final java.util.Iterator<Resource> iterator()
iterator in interface java.lang.Iterable<Resource>iterator in interface ResourceCollectionpublic int size()
size in interface ResourceCollectionpublic boolean isFilesystemOnly()
isFilesystemOnly in interface ResourceCollectionpublic java.lang.String toString()
toString in class DataType
protected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
                                      Project p)
ResourceSelectorContainer
dieOnCircularReference in class ResourceSelectorContainerstk - the Stack of references.p - the Project to resolve against.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||