org.apache.tools.ant.types.resources
Class Union
- Cloneable, ResourceCollection
ResourceCollection representing the union of multiple nested ResourceCollections.
add , addAll , clear , clone , dieOnCircularReference , getCollection , getResourceCollections , isCache , isFilesystemOnly , iterator , setCache , size , toString |
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
Union
public Union()
Default constructor.
Union
public Union(ResourceCollection rc)
Convenience constructor.
rc
- the ResourceCollection to add.
getCollection
protected Collection getCollection(boolean asString)
Unify the contained Resources.
asString
- indicates whether the resulting Collection
should contain Strings instead of Resources.
- a Collection of Resources.
getInstance
public static Union getInstance(ResourceCollection rc)
Static convenience method to union an arbitrary set of Resources.
rc
- a ResourceCollection.
list
public String[] list()
Returns all Resources in String format. Provided for
convenience in implementing Path.
- String array of Resources.
listResources
public Resource[] listResources()
Convenience method.