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.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.
|
add, addAll, clear, clone, dieOnCircularReference, getResourceCollections, isCache, isFilesystemOnly, iterator, setCache, size, toString
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
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.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 BaseResourceCollectionContainer
protected java.util.Collection getCollection(boolean asString)
asString
- indicates whether the resulting Collection
should contain Strings instead of Resources.