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, selectorCount
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, 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<Resource> iterator()
iterator
in interface java.lang.Iterable<Resource>
iterator
in interface ResourceCollection
public int size()
size
in interface ResourceCollection
public boolean isFilesystemOnly()
isFilesystemOnly
in interface ResourceCollection
public java.lang.String toString()
protected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk, Project p)
ResourceSelectorContainer
dieOnCircularReference
in class ResourceSelectorContainer
stk
- the Stack of references.p
- the Project to resolve against.