org.apache.tools.ant.types.resources
public class Restrict extends ResourceSelectorContainer implements ResourceCollection
description, location, project
Constructor and Description |
---|
Restrict() |
Modifier and Type | Method and Description |
---|---|
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.
|
dieOnCircularReference, getSelectors, hasSelectors, selectorCount
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
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