java.lang.Cloneable, java.lang.Iterable<Resource>, ResourceCollectionpublic class Restrict extends ResourceSelectorContainer implements ResourceCollection
description, location, project| Constructor | Description |
|---|---|
Restrict() |
| Modifier and Type | Method | 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.
|
protected Restrict |
getCheckedRef() |
Performs the check for circular references and returns the
referenced object.
|
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.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectisEmpty, streamgetResourceSelectors, getSelectors, hasSelectors, selectorCountpublic 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>public 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.protected Restrict getCheckedRef()
DataTypegetCheckedRef in class ResourceSelectorContainer