|
|||||||||
| 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.BaseResourceCollectionContainer
org.apache.tools.ant.types.resources.Union
public class Union
ResourceCollection representing the union of multiple nested ResourceCollections.
| Field Summary |
|---|
| 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 | |
|---|---|
Union()
Default constructor. |
|
Union(ResourceCollection rc)
Convenience constructor. |
|
| Method Summary | |
|---|---|
protected java.util.Collection |
getCollection()
Unify the contained Resources. |
protected java.util.Collection |
getCollection(boolean asString)
Unify the contained Resources. |
static Union |
getInstance(ResourceCollection rc)
Static convenience method to union an arbitrary set of Resources. |
java.lang.String[] |
list()
Returns all Resources in String format. |
Resource[] |
listResources()
Convenience method. |
| Methods inherited from class org.apache.tools.ant.types.resources.BaseResourceCollectionContainer |
|---|
add, addAll, clear, clone, dieOnCircularReference, getResourceCollections, isCache, isFilesystemOnly, iterator, setCache, size, toString |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, 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 |
| Constructor Detail |
|---|
public Union()
public Union(ResourceCollection rc)
rc - the ResourceCollection to add.| Method Detail |
|---|
public static Union getInstance(ResourceCollection rc)
rc - a ResourceCollection.
public java.lang.String[] list()
public Resource[] listResources()
protected java.util.Collection getCollection()
getCollection in class BaseResourceCollectionContainerprotected java.util.Collection getCollection(boolean asString)
asString - indicates whether the resulting Collection
should contain Strings instead of Resources.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||