@InterfaceStability.Evolving public class ResourcePattern extends java.lang.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 java.lang.String |
WILDCARD_RESOURCE
A special literal resource name that corresponds to 'all resources of a certain type'.
|
| Constructor and Description |
|---|
ResourcePattern(ResourceType resourceType,
java.lang.String name,
PatternType patternType)
Create a pattern using the supplied parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isUnknown() |
java.lang.String |
name() |
PatternType |
patternType() |
ResourceType |
resourceType() |
ResourcePatternFilter |
toFilter() |
java.lang.String |
toString() |
public static final java.lang.String WILDCARD_RESOURCE
public ResourcePattern(ResourceType resourceType, java.lang.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 java.lang.String name()
public PatternType patternType()
public ResourcePatternFilter toFilter()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isUnknown()
true if this Resource has any UNKNOWN components.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object