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 forXQueryExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XQueryExpression.Builder
configuration(Object configuration)
Custom saxon configuration (requires camel-saxon).XQueryExpression.Builder
configurationRef(String configurationRef)
Reference to a saxon configuration instance in the registry to use for xquery (requires camel-saxon).XQueryExpression
end()
Ends the build of an expression.T
expression(String expression)
The expression value in your chosen language syntaxT
id(String id)
Sets the id of this nodeT
namespace(List<PropertyDefinition> namespace)
Injects the XML Namespaces of prefix -> uri mappingsT
namespaces(Map<String,String> namespaces)
Injects the XML Namespaces of prefix -> uri mappingsT
namespaces(org.apache.camel.support.builder.Namespaces namespaces)
Injects the XML Namespaces of prefix -> uri mappingsT
predicate(org.apache.camel.Predicate predicate)
XQueryExpression.Builder
resultType(Class<?> resultType)
Sets the class of the result type (type from output).XQueryExpression.Builder
resultTypeName(String resultTypeName)
Sets the class of the result type (type from output)T
trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksT
trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksXQueryExpression.Builder
type(String type)
Sets the class name of the result type (type from output)-
Methods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder
headerName, propertyName
-
-
-
-
Method Detail
-
resultTypeName
public XQueryExpression.Builder resultTypeName(String resultTypeName)
Sets the class of the result type (type from output)
-
resultType
public XQueryExpression.Builder resultType(Class<?> resultType)
Sets the class of the result type (type from output). The default result type is NodeSet
-
configuration
public XQueryExpression.Builder configuration(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.
-
type
public XQueryExpression.Builder type(String type)
Sets the class name of the result type (type from output) The default result type is NodeSet
-
configurationRef
public XQueryExpression.Builder configurationRef(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.
-
end
public XQueryExpression end()
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
namespaces
public T namespaces(org.apache.camel.support.builder.Namespaces namespaces)
Injects the XML Namespaces of prefix -> uri mappings- Parameters:
namespaces
- the XML namespaces
-
namespaces
public T namespaces(Map<String,String> 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
public T namespace(List<PropertyDefinition> namespace)
Injects the XML Namespaces of prefix -> uri mappings
-
id
public T id(String id)
Sets the id of this node
-
trim
public T trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
trim
public T trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
expression
public T expression(String expression)
The expression value in your chosen language syntax
-
predicate
public T predicate(org.apache.camel.Predicate predicate)
-
-