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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilderis 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getType()voidsetConfiguration(Object configuration) Custom saxon configuration (requires camel-saxon).voidsetConfigurationRef(String configurationRef) Reference to a saxon configuration instance in the registry to use for xquery (requires camel-saxon).voidsetResultType(Class<?> resultType) Sets the class of the result type (type from output).voidsetResultTypeName(String resultTypeName) Sets the class of the result type (type from output)voidSets the class name of the result type (type from output)Methods inherited from class org.apache.camel.model.language.NamespaceAwareExpression
getNamespace, getNamespaceAsMap, getNamespaces, setNamespace, setNamespacesMethods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition
getHeaderName, getPropertyName, setHeaderName, setPropertyNameMethods 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:
getLanguagein 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.
-