public class NodeSelector extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODED_SLASH |
static String |
PARENT_EXPR |
static String |
WILDCARD_SELECTOR |
| Constructor and Description |
|---|
NodeSelector() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodePath(String path) |
static Node |
selectFrom(String path,
Node from)
Resolves a path in the specified node.
|
static Integer |
selectIntValue(String path,
Node from) |
static List<String> |
selectStringCollection(String path,
Node from) |
static String |
selectStringValue(String path,
Node from) |
static <T> T |
selectType(String path,
Node from,
T defaultValue) |
public static final String PARENT_EXPR
public static final String WILDCARD_SELECTOR
public static final String ENCODED_SLASH
@Nullable public static Node selectFrom(String path, Node from)
"name" -> return the value of field with key that matches the specified name.
.. -> returns the parent
* -> wild card selector
number -> returns the element at that index zero base index. The number should be bigger than zero
path - The path example schemas/foofrom - The source where to queryCopyright © 2016. All rights reserved.