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
AttributeValue s, 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 Set
must not be null. The new
ResourceFinderResult
represents a resource retrieval that
encountered no errors.resources
- a non-null Set
of
AttributeValue
spublic ResourceFinderResult(HashMap failures)
Map
must not be null. The keys in the Map
are AttributeValue
s 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
Status
public ResourceFinderResult(Set resources, Map failures)
resources
- a non-null Set
of
AttributeValue
sfailures
- a non-null Map
mapping failed
AttributeValue
identifiers to their
Status
public boolean isEmpty()
public Set getResources()
Set
of successfully resolved Resource Id
AttributeValue
s, which will be empty if no resources
were successfully resolved.Set
of AttributeValue
spublic Map getFailures()
Map
of Resource Ids that caused an error on
resolution, which will be empty if no resources caused any error.Map
of AttributeValue
s to
Status
Copyright © 2023 JBoss by Red Hat. All rights reserved.