Interface UriTemplate.PathSegment
- All Superinterfaces:
CharSequence
- Enclosing class:
UriTemplate
Represents an expandable path segment.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionExpands the query segment.If this path segment represents a variable returns the underlying variable name.default booleandefault booleanMethods inherited from interface CharSequence
charAt, chars, codePoints, getChars, isEmpty, length, subSequence, toString
-
Method Details
-
isQuerySegment
default boolean isQuerySegment()- Returns:
- Whether this segment is part of the query string
-
getVariable
-
isVariable
default boolean isVariable()- Returns:
- True if this is a variable segment
-
expand
String expand(Map<String, Object> parameters, boolean previousHasContent, boolean anyPreviousHasOperator) Expands the query segment.- Parameters:
parameters- The parameterspreviousHasContent- Whether there was previous contentanyPreviousHasOperator- Whether an operator is present- Returns:
- The expanded string
-