@Metadata(firstVersion="1.1.0",
label="language,core,xml",
title="XPath")
public class XPathExpression
extends NamespaceAwareExpression
| Constructor and Description |
|---|
XPathExpression() |
XPathExpression(org.apache.camel.Expression expression) |
XPathExpression(String expression) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDocumentType() |
String |
getDocumentTypeName() |
String |
getFactoryRef() |
String |
getHeaderName() |
String |
getLanguage() |
String |
getLogNamespaces() |
String |
getObjectModel() |
Class<?> |
getResultType() |
String |
getResultTypeName() |
String |
getSaxon() |
String |
getThreadSafety() |
XPathFactory |
getXPathFactory() |
void |
setDocumentType(Class<?> documentType)
Class for document type to use
The default value is org.w3c.dom.Document
|
void |
setDocumentTypeName(String documentTypeName)
Name of class for document type
The default value is org.w3c.dom.Document
|
void |
setFactoryRef(String factoryRef)
References to a custom XPathFactory to lookup in the registry
|
void |
setHeaderName(String headerName)
Name of header to use as input, instead of the message body
|
void |
setLogNamespaces(String logNamespaces)
Whether to log namespaces which can assist during trouble shooting
|
void |
setObjectModel(String objectModel)
The XPath object model to use
|
void |
setResultType(Class<?> resultType)
Sets the class of the result type (type from output).
|
void |
setResultTypeName(String resultTypeName)
Sets the class name of the result type (type from output)
The default result type is NodeSet
|
void |
setSaxon(String saxon)
Whether to use Saxon.
|
void |
setThreadSafety(String threadSafety)
Whether to enable thread-safety for the returned result of the xpath
expression.
|
void |
setXPathFactory(XPathFactory xpathFactory) |
getNamespaces, setNamespacescreateExpression, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getTrim, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toStringpublic XPathExpression()
public XPathExpression(String expression)
public XPathExpression(org.apache.camel.Expression expression)
public String getLanguage()
getLanguage in class ExpressionDefinitionpublic Class<?> getDocumentType()
public void setDocumentType(Class<?> documentType)
public String getDocumentTypeName()
public void setDocumentTypeName(String documentTypeName)
public Class<?> getResultType()
public void setResultType(Class<?> resultType)
public String getResultTypeName()
public void setResultTypeName(String resultTypeName)
public void setFactoryRef(String factoryRef)
public String getFactoryRef()
public void setObjectModel(String objectModel)
public String getObjectModel()
public void setLogNamespaces(String logNamespaces)
public String getLogNamespaces()
public String getHeaderName()
public void setHeaderName(String headerName)
public XPathFactory getXPathFactory()
public void setXPathFactory(XPathFactory xpathFactory)
public String getThreadSafety()
public void setThreadSafety(String threadSafety)
Apache Camel