public class XPathUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
XPATH_EMPTY |
static int |
XPATH_INVALID |
static int |
XPATH_VALID |
Constructor and Description |
---|
XPathUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValid(com.fasterxml.jackson.databind.JsonNode json)
Tests validity of the configuration held.
|
static int |
validateXPath(String xpathExpressionToValidate)
Validates an XPath expression.
|
public static final int XPATH_VALID
public static final int XPATH_EMPTY
public static final int XPATH_INVALID
public static int validateXPath(String xpathExpressionToValidate)
XPATH_VALID
-
if the expression is valid;XPATH_EMPTY
-
if expression is empty;XPATH_INVALID
- if the expression is invalid / ill-formed.public static boolean isValid(com.fasterxml.jackson.databind.JsonNode json)
true
if the configuration in the bean is valid;
false
otherwise.Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.