@Metadata(firstVersion="1.1.0", label="language,core,xml", title="XPath") public class XPathExpression extends NamespaceAwareExpression
Constructor and Description |
---|
XPathExpression() |
XPathExpression(Expression expression) |
XPathExpression(String expression) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureExpression(CamelContext camelContext,
Expression expression) |
protected void |
configurePredicate(CamelContext camelContext,
Predicate predicate) |
Expression |
createExpression(CamelContext camelContext) |
Predicate |
createPredicate(CamelContext camelContext) |
Class<?> |
getDocumentType() |
String |
getDocumentTypeName() |
String |
getFactoryRef() |
String |
getHeaderName() |
String |
getLanguage() |
Boolean |
getLogNamespaces() |
String |
getObjectModel() |
Class<?> |
getResultType() |
String |
getResultTypeName() |
Boolean |
getSaxon() |
Boolean |
getThreadSafety() |
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(Boolean 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(Boolean saxon)
Whether to use Saxon.
|
void |
setThreadSafety(Boolean threadSafety)
Whether to enable thread-safety for the returned result of the xpath expression.
|
configureNamespaceAware, getNamespaces, setNamespaces
assertMatches, createExpression, createPredicate, evaluate, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getOtherAttributes, getPredicate, getTrim, matches, setExpression, setExpressionType, setExpressionValue, setId, setOtherAttributes, setProperty, setTrim, toString
public XPathExpression()
public XPathExpression(String expression)
public XPathExpression(Expression expression)
public String getLanguage()
getLanguage
in class ExpressionDefinition
public 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(Boolean logNamespaces)
public Boolean getLogNamespaces()
public String getHeaderName()
public void setHeaderName(String headerName)
public Boolean getThreadSafety()
public void setThreadSafety(Boolean threadSafety)
public Expression createExpression(CamelContext camelContext)
createExpression
in class ExpressionDefinition
public Predicate createPredicate(CamelContext camelContext)
createPredicate
in class ExpressionDefinition
protected void configureExpression(CamelContext camelContext, Expression expression)
configureExpression
in class NamespaceAwareExpression
protected void configurePredicate(CamelContext camelContext, Predicate predicate)
configurePredicate
in class NamespaceAwareExpression
Apache Camel