public class Union extends BaseResourceCollectionContainer
description, location, project| Constructor and Description |
|---|
Union()
Default constructor.
|
Union(Project project)
Create a new Union.
|
Union(Project project,
ResourceCollection rc)
Convenience constructor.
|
Union(ResourceCollection rc)
Convenience constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 <T> java.util.Collection<T> |
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.
|
add, addAll, clear, clone, dieOnCircularReference, getResourceCollections, isCache, isFilesystemOnly, iterator, setCache, size, toStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic 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.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)
T - resource typeasString - 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()