|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.resources.Resources
public class Resources
Generic ResourceCollection: Either stores nested ResourceCollections, making no attempt to remove duplicates, or references another ResourceCollection.
| Field Summary | |
|---|---|
static java.util.Iterator |
EMPTY_ITERATOR
static empty Iterator |
static ResourceCollection |
NONE
static empty ResourceCollection |
| Fields inherited from class org.apache.tools.ant.types.DataType |
|---|
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
Resources()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ResourceCollection NONE
public static final java.util.Iterator EMPTY_ITERATOR
| Constructor Detail |
|---|
public Resources()
| Method Detail |
|---|
public void add(ResourceCollection c)
c - the ResourceCollection to add.public java.util.Iterator iterator()
iterator in interface ResourceCollectionpublic int size()
size in interface ResourceCollectionpublic boolean isFilesystemOnly()
isFilesystemOnly in interface ResourceCollectionpublic java.lang.String toString()
Resources as a String.
toString in class DataTypeString.
protected void dieOnCircularReference(java.util.Stack 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||