|
|||||||||
| 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(Project project)
Create a new Union. |
|
Union(Project project,
ResourceCollection rc)
Convenience constructor. |
|
Union(ResourceCollection rc)
Convenience constructor. |
|
| Method Summary | ||
|---|---|---|
protected java.util.Set<Resource> |
getAllResources()
Get the unified set of contained Resources. |
|
protected java.util.Collection<java.lang.String> |
getAllToStrings()
Get a collection of strings representing the unified resource set (strings may duplicate). |
|
protected java.util.Collection<Resource> |
getCollection()
Unify the contained Resources. |
|
protected
|
getCollection(boolean asString)
Deprecated. |
|
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, pushAndInvokeCircularReferenceCheck, 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(Project project)
project - owning Projectpublic Union(ResourceCollection rc)
rc - the ResourceCollection to add.
public Union(Project project,
ResourceCollection rc)
project - owning Projectrc - 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<Resource> getCollection()
getCollection in class BaseResourceCollectionContainer@Deprecated protected <T> java.util.Collection<T> getCollection(boolean asString)
asString - indicates whether the resulting Collection
should contain Strings instead of Resources.
protected java.util.Collection<java.lang.String> getAllToStrings()
protected java.util.Set<Resource> getAllResources()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||