Class PathElement
java.lang.Object
org.wildfly.galleon.plugin.doc.generator.PathElement
An element of a path specification for matching operations with addresses.
- Author:
- Brian Stansberry, David M. Lloyd
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether this object is equal to another.booleanequals(PathElement other) Determine whether this object is equal to another.getKey()Get the path key.String[]String[]getValue()Get the path value.inthashCode()booleanbooleanDetermine whether the value is the wildcard value.booleanmatches(org.jboss.dmr.Property property) Determine whether the given property matches this element.static PathElementpathElement(String key) Construct a new instance with a wildcard value.static PathElementpathElement(String key, String value) Construct a new instance.toString()
-
Field Details
-
WILDCARD_VALUE
- See Also:
-
-
Method Details
-
pathElement
Construct a new instance with a wildcard value.- Parameters:
key- the path key to match- Returns:
- the new path element
-
pathElement
Construct a new instance.- Parameters:
key- the path key to matchvalue- the path value or wildcard to match- Returns:
- the new path element
-
getKey
Get the path key.- Returns:
- the path key
-
getValue
Get the path value.- Returns:
- the path value
-
matches
public boolean matches(org.jboss.dmr.Property property) Determine whether the given property matches this element.- Parameters:
property- the property to check- Returns:
trueif the property matches
-
isWildcard
public boolean isWildcard()Determine whether the value is the wildcard value.- Returns:
trueif the value is the wildcard value
-
isMultiTarget
public boolean isMultiTarget() -
getSegments
-
getKeyValuePair
-
hashCode
public int hashCode() -
equals
Determine whether this object is equal to another. -
equals
Determine whether this object is equal to another.- Parameters:
other- the other object- Returns:
trueif they are equal,falseotherwise
-
toString
-