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