|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
boolean |
isCache()
Learn whether to cache collections. |
boolean |
isFilesystemOnly()
Fulfill the ResourceCollection contract. |
java.util.Iterator |
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 |
---|
dieOnCircularReference, 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, 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 ResourceSelectorContainer
s
- the ResourceSelector to add.public final java.util.Iterator iterator()
iterator
in interface ResourceCollection
public int size()
size
in interface ResourceCollection
public boolean isFilesystemOnly()
isFilesystemOnly
in interface ResourceCollection
public java.lang.String toString()
toString
in class DataType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |