Package org.apache.camel.model.language
Class XQueryExpression
- java.lang.Object
-
- org.apache.camel.model.language.ExpressionDefinition
-
- 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 NamespaceAwareExpressionEvaluates an XQuery expressions against an XML payload.
-
-
Constructor Summary
Constructors Constructor Description XQueryExpression()XQueryExpression(String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetConfiguration()StringgetConfigurationRef()StringgetHeaderName()StringgetLanguage()Class<?>getResultType()StringgetType()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).voidsetHeaderName(String headerName)Name of header to use as input, instead of the message bodyvoidsetResultType(Class<?> resultType)Sets the class of the result type (type from output).voidsetType(String type)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.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
-
-
-
Constructor Detail
-
XQueryExpression
public XQueryExpression()
-
XQueryExpression
public XQueryExpression(String expression)
-
-
Method Detail
-
getLanguage
public String getLanguage()
- Overrides:
getLanguagein classExpressionDefinition
-
getType
public String getType()
-
setType
public void setType(String type)
Sets the class name of the result type (type from output) The default result type is NodeSet
-
getResultType
public Class<?> getResultType()
-
setResultType
public void setResultType(Class<?> resultType)
Sets the class of the result type (type from output). The default result type is NodeSet
-
getHeaderName
public String getHeaderName()
-
setHeaderName
public void setHeaderName(String headerName)
Name of header to use as input, instead of the message body
-
getConfigurationRef
public String getConfigurationRef()
-
setConfigurationRef
public void setConfigurationRef(String configurationRef)
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
public Object getConfiguration()
-
setConfiguration
public void setConfiguration(Object configuration)
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.
-
-