java.lang.Cloneable, java.lang.Iterable<Resource>, ResourceCollectionpublic class Resources extends DataType implements ResourceCollection
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Iterator<Resource> |
EMPTY_ITERATOR |
static empty Iterator
|
static ResourceCollection |
NONE |
static empty ResourceCollection
|
description, location, project| Constructor | Description |
|---|---|
Resources() |
Create a new Resources.
|
Resources(Project project) |
Create a new Resources.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(ResourceCollection c) |
Add a ResourceCollection.
|
protected void |
dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
Project p) |
Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
|
protected void |
invalidateExistingIterators() |
Allow subclasses to notify existing Iterators they have experienced concurrent modification.
|
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
Resources as a String. |
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, 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, streampublic static final ResourceCollection NONE
public static final java.util.Iterator<Resource> EMPTY_ITERATOR
public Resources()
public Resources(Project project)
project - Projectpublic void setCache(boolean b)
b - boolean cache flag.public void add(ResourceCollection c)
c - the ResourceCollection to add.public 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()
Resources as a String.protected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
Project p)
throws BuildException
dieOnCircularReference in class DataTypestk - the stack of data types to use (recursively).p - the project to use to dereference the references.BuildException - on error.protected void invalidateExistingIterators()