Package org.apache.camel.model.language
Class XQueryExpression
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition
org.apache.camel.model.language.SingleInputExpressionDefinition
org.apache.camel.model.language.NamespaceAwareExpression
org.apache.camel.model.language.XQueryExpression
- All Implemented Interfaces:
org.apache.camel.Expression
,org.apache.camel.ExpressionFactory
,HasExpressionType
,org.apache.camel.Predicate
,org.apache.camel.PredicateFactory
,org.apache.camel.spi.ExpressionFactoryAware
,org.apache.camel.spi.NamespaceAware
,org.apache.camel.spi.PredicateFactoryAware
@Metadata(firstVersion="1.0.0",
label="language,xml",
title="XQuery")
public class XQueryExpression
extends NamespaceAwareExpression
Evaluates an XQuery expressions against an XML payload.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder
is a specific builder forXQueryExpression
.Nested classes/interfaces inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition
SingleInputExpressionDefinition.AbstractBuilder<T extends SingleInputExpressionDefinition.AbstractBuilder<T,
E>, E extends SingleInputExpressionDefinition> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getType()
void
setConfiguration
(Object configuration) Custom saxon configuration (requires camel-saxon).void
setConfigurationRef
(String configurationRef) Reference to a saxon configuration instance in the registry to use for xquery (requires camel-saxon).void
setResultType
(Class<?> resultType) Sets the class of the result type (type from output).void
setResultTypeName
(String resultTypeName) Sets the class of the result type (type from output)void
Sets the class name of the result type (type from output)Methods inherited from class org.apache.camel.model.language.NamespaceAwareExpression
getNamespace, getNamespaceAsMap, getNamespaces, setNamespace, setNamespaces
Methods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition
getHeaderName, getPropertyName, setHeaderName, setPropertyName
Methods inherited from class org.apache.camel.model.language.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
Constructor Details
-
XQueryExpression
public XQueryExpression() -
XQueryExpression
-
-
Method Details
-
getLanguage
- Overrides:
getLanguage
in classExpressionDefinition
-
getType
-
setType
Sets the class name of the result type (type from output) The default result type is NodeSet -
getResultType
-
setResultType
Sets the class of the result type (type from output). The default result type is NodeSet -
getResultTypeName
-
setResultTypeName
Sets the class of the result type (type from output) -
getConfigurationRef
-
setConfigurationRef
Reference to a saxon configuration instance in the registry to use for xquery (requires camel-saxon). This may be needed to add custom functions to a saxon configuration, so these custom functions can be used in xquery expressions. -
getConfiguration
-
setConfiguration
Custom saxon configuration (requires camel-saxon). This may be needed to add custom functions to a saxon configuration, so these custom functions can be used in xquery expressions.
-