@InterfaceStability.Evolving public class ResourcePattern extends Object
Resources
.
The API for this class is still evolving and we may break compatibility in minor releases, if necessary.Modifier and Type | Field and Description |
---|---|
static String |
WILDCARD_RESOURCE
A special literal resource name that corresponds to 'all resources of a certain type'.
|
Constructor and Description |
---|
ResourcePattern(ResourceType resourceType,
String name,
PatternType patternType)
Create a pattern using the supplied parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isUnknown() |
String |
name() |
PatternType |
patternType() |
ResourceType |
resourceType() |
ResourcePatternFilter |
toFilter() |
String |
toString() |
public static final String WILDCARD_RESOURCE
public ResourcePattern(ResourceType resourceType, String name, PatternType patternType)
resourceType
- non-null, specific, resource typename
- non-null resource name, which can be the WILDCARD_RESOURCE
.patternType
- non-null, specific, resource pattern type, which controls how the pattern will match resource names.public ResourceType resourceType()
public String name()
public PatternType patternType()
public ResourcePatternFilter toFilter()
public boolean isUnknown()
true
if this Resource has any UNKNOWN components.