Package org.apache.camel.model.language
Class XQueryExpression.Builder
java.lang.Object
org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder<T,E>
org.apache.camel.model.language.XQueryExpression.Builder
- All Implemented Interfaces:
LanguageBuilder<XQueryExpression>
- Enclosing class:
- XQueryExpression
public static class XQueryExpression.Builder
extends SingleInputExpressionDefinition.AbstractBuilder<T,E>
Builder
is a specific builder for XQueryExpression
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Object configuration) Custom saxon configuration (requires camel-saxon).configurationRef
(String configurationRef) Reference to a saxon configuration instance in the registry to use for xquery (requires camel-saxon).end()
Ends the build of an expression.expression
(String expression) The expression value in your chosen language syntaxSets the id of this nodenamespace
(List<PropertyDefinition> namespace) Injects the XML Namespaces of prefix -> uri mappingsnamespaces
(Map<String, String> namespaces) Injects the XML Namespaces of prefix -> uri mappingsnamespaces
(org.apache.camel.support.builder.Namespaces namespaces) Injects the XML Namespaces of prefix -> uri mappingspredicate
(org.apache.camel.Predicate predicate) resultType
(Class<?> resultType) Sets the class of the result type (type from output).resultTypeName
(String resultTypeName) Sets the class of the result type (type from output)trim
(boolean trim) Whether to trim the value to remove leading and trailing whitespaces and line breaksWhether to trim the value to remove leading and trailing whitespaces and line breaksSets the class name of the result type (type from output)Methods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder
headerName, propertyName
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resultTypeName
Sets the class of the result type (type from output) -
resultType
Sets the class of the result type (type from output). The default result type is NodeSet -
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. -
type
Sets the class name of the result type (type from output) The default result type is NodeSet -
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. -
end
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
namespaces
Injects the XML Namespaces of prefix -> uri mappings- Parameters:
namespaces
- the XML namespaces
-
namespaces
Injects the XML Namespaces of prefix -> uri mappings- Parameters:
namespaces
- the XML namespaces with the key of prefixes and the value the URIs
-
namespace
Injects the XML Namespaces of prefix -> uri mappings -
id
Sets the id of this node -
trim
Whether to trim the value to remove leading and trailing whitespaces and line breaks -
trim
Whether to trim the value to remove leading and trailing whitespaces and line breaks -
expression
The expression value in your chosen language syntax -
predicate
-