java.lang.Cloneable
, java.lang.Iterable<Resource>
, ResourceCollection
public 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, tooManyAttributes
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
isEmpty, stream
getResourceSelectors, getSelectors, hasSelectors, selectorCount
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>
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.protected Restrict getCheckedRef()
DataType
getCheckedRef
in class ResourceSelectorContainer