public class PathSegment extends Object
chair
or contain matrix parameter values using semi-colon delimitation
like chair;vendor=ikea;size=small.
Matrix parameters are optional 'qualifiers' of the path segment.
| Constructor and Description |
|---|
PathSegment(String value)
Create with a given value that may contain matric parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
metric(String key)
Return a metric value for the given key.
|
static PathSegment |
of(String value)
Create with a given value that may contain matrix parameters.
|
String |
val()
Return the main segment value.
|
public PathSegment(String value)
public static PathSegment of(String value)
public String val()
For "chair" this returns "chair"
For "chair;vendor=ikea;size=small" this returns "chair"
Copyright © 2019. All rights reserved.