public class ValueResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static ResultContainer<Collection<String>> |
resolveJsonPath(String jsonStr,
String expression)
Parses a
jsonStr, applies a Json-Path expression and returns a collection of strings based on the result |
static ResultContainer<Collection<String>> |
resolveXPath(String xmlStr,
String expression)
Parses a
xmlStr, applies a xPath expression and returns a collection of strings based on the result |
public static ResultContainer<Collection<String>> resolveXPath(String xmlStr, String expression)
xmlStr, applies a xPath expression and returns a collection of strings based on the resultxmlStr - The XML text as stringexpression - The xPath expressionResultContainer capsuling either a collection of strings or a user friendly error messagepublic static ResultContainer<Collection<String>> resolveJsonPath(String jsonStr, String expression)
jsonStr, applies a Json-Path expression and returns a collection of strings based on the resultjsonStr - The Json text as stringexpression - The Json-Path expressionResultContainer capsuling either a collection of strings or a user friendly error messageCopyright © 2016–2020. All rights reserved.