public class ResourceFinderResult extends Object
| Constructor and Description |
|---|
ResourceFinderResult()
Creates an empty result.
|
ResourceFinderResult(HashMap failures)
Creates a result containing only Resource Ids that caused errors.
|
ResourceFinderResult(Set resources)
Creates a result containing the given
Set of resource
identifiers. |
ResourceFinderResult(Set resources,
Map failures)
Creates a new result containing both successfully resolved Resource Ids
and resources that caused errors.
|
| Modifier and Type | Method and Description |
|---|---|
Map |
getFailures()
Returns the
Map of Resource Ids that caused an error on
resolution, which will be empty if no resources caused any error. |
Set |
getResources()
Returns the
Set of successfully resolved Resource Id
AttributeValues, which will be empty if no resources
were successfully resolved. |
boolean |
isEmpty()
Returns whether or not this result contains any Resource Id listings.
|
public ResourceFinderResult()
public ResourceFinderResult(Set resources)
Set of resource
identifiers. The Setmust not be null. The new
ResourceFinderResult represents a resource retrieval that
encountered no errors.resources - a non-null Set of
AttributeValuespublic ResourceFinderResult(HashMap failures)
Map must not be null. The keys in the Map
are AttributeValues identifying the resources that could
not be resolved, and they map to a Status object
explaining the error. The new ResourceFinderResult
represents a resource retrieval that did not succeed in finding any
resource identifiers.failures - a non-null Map mapping failed
AttributeValue identifiers to their
Statuspublic ResourceFinderResult(Set resources, Map failures)
resources - a non-null Set of
AttributeValuesfailures - a non-null Map mapping failed
AttributeValue identifiers to their
Statuspublic boolean isEmpty()
public Set getResources()
Set of successfully resolved Resource Id
AttributeValues, which will be empty if no resources
were successfully resolved.Set of AttributeValuespublic Map getFailures()
Map of Resource Ids that caused an error on
resolution, which will be empty if no resources caused any error.Map of AttributeValues to
StatusCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.