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 Classes Modifier and Type Class Description static class
XQueryExpression.Builder
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
Constructors Constructor Description XQueryExpression()
XQueryExpression(String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getConfiguration()
String
getConfigurationRef()
String
getLanguage()
Class<?>
getResultType()
String
getResultTypeName()
String
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
setType(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.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 Detail
-
XQueryExpression
public XQueryExpression()
-
XQueryExpression
public XQueryExpression(String expression)
-
-
Method Detail
-
getLanguage
public String getLanguage()
- Overrides:
getLanguage
in 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
-
getResultTypeName
public String getResultTypeName()
-
setResultTypeName
public void setResultTypeName(String resultTypeName)
Sets the class of the result type (type from output)
-
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.
-
-