public class XPathActivityConfigurationBean extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
XPathActivityConfigurationBean.NamespaceMapping |
Modifier and Type | Field and Description |
---|---|
static int |
XPATH_EMPTY |
static int |
XPATH_INVALID |
static int |
XPATH_VALID |
Constructor and Description |
---|
XPathActivityConfigurationBean() |
Modifier and Type | Method and Description |
---|---|
static XPathActivityConfigurationBean |
getDefaultInstance() |
String |
getXmlDocument() |
String |
getXpathExpression() |
Map<String,String> |
getXpathNamespaceMap() |
boolean |
isValid()
Tests validity of the configuration held in this bean.
|
void |
setXmlDocument(String xmlDocument) |
void |
setXpathExpression(String xpathExpression) |
void |
setXpathNamespaceMap(Map<String,String> xpathNamespaceMap) |
void |
setXpathNamespaceMap(Set<XPathActivityConfigurationBean.NamespaceMapping> xpathNamespaceMap) |
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 XPathActivityConfigurationBean getDefaultInstance()
XPathActivityConfigurationBean
pre-configured with default settings for all parameters.org.dom4j.DocumentException
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 boolean isValid()
true
if the configuration in the bean is valid;
false
otherwise.public String getXmlDocument()
public void setXmlDocument(String xmlDocument)
public String getXpathExpression()
public void setXpathExpression(String xpathExpression)
public void setXpathNamespaceMap(Set<XPathActivityConfigurationBean.NamespaceMapping> xpathNamespaceMap)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.