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. | 
| 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. | 
getSelectors, hasSelectors, selectorCountcheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic 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()
protected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
                                      Project p)
ResourceSelectorContainerdieOnCircularReference in class ResourceSelectorContainerstk - the Stack of references.p - the Project to resolve against.