public class PathElement extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WILDCARD_VALUE |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Determine whether this object is equal to another.
|
boolean |
equals(PathElement other)
Determine whether this object is equal to another.
|
String |
getKey()
Get the path key.
|
String[] |
getKeyValuePair() |
String[] |
getSegments() |
String |
getValue()
Get the path value.
|
int |
hashCode() |
boolean |
isMultiTarget() |
boolean |
isWildcard()
Determine whether the value is the wildcard value.
|
boolean |
matches(PathElement pe)
Determine whether the given element matches this element.
|
boolean |
matches(org.jboss.dmr.Property property)
Determine whether the given property matches this element.
|
static PathElement |
pathElement(String key)
Construct a new instance with a wildcard value.
|
static PathElement |
pathElement(String key,
String value)
Construct a new instance.
|
String |
toString() |
public static final String WILDCARD_VALUE
public static PathElement pathElement(String key)
key
- the path key to matchpublic static PathElement pathElement(String key, String value)
key
- the path key to matchvalue
- the path value or wildcard to matchpublic String getKey()
public String getValue()
public boolean matches(org.jboss.dmr.Property property)
property
- the property to checktrue
if the property matchespublic boolean matches(PathElement pe)
pe
- the element to checktrue
if the element matchespublic boolean isWildcard()
true
if the value is the wildcard valuepublic boolean isMultiTarget()
public String[] getSegments()
public String[] getKeyValuePair()
public boolean equals(Object other)
public boolean equals(PathElement other)
other
- the other objecttrue
if they are equal, false
otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.