org.apache.tools.ant.types.resources
public class Resources extends DataType implements ResourceCollection
Modifier and Type | Field and Description |
---|---|
static java.util.Iterator |
EMPTY_ITERATOR
static empty Iterator
|
static ResourceCollection |
NONE
static empty ResourceCollection
|
description, location, project
Constructor and Description |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
void |
add(ResourceCollection c)
Add a ResourceCollection.
|
protected void |
dieOnCircularReference(java.util.Stack stk,
Project p)
Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
|
boolean |
isFilesystemOnly()
Fulfill the ResourceCollection contract.
|
java.util.Iterator |
iterator()
Fulfill the ResourceCollection contract.
|
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, setChecked, setRefid, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public static final ResourceCollection NONE
public static final java.util.Iterator EMPTY_ITERATOR
public void add(ResourceCollection c)
c
- the ResourceCollection to add.public java.util.Iterator iterator()
iterator
in interface ResourceCollection
public int size()
size
in interface ResourceCollection
public boolean isFilesystemOnly()
isFilesystemOnly
in interface ResourceCollection
public java.lang.String toString()
Resources
as a String.protected void dieOnCircularReference(java.util.Stack stk, Project p) throws BuildException
dieOnCircularReference
in class DataType
stk
- the stack of data types to use (recursively).p
- the project to use to dereference the references.BuildException
- on error.