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 Details

    • Builder

      public Builder()
  • Method Details

    • 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 XQueryExpression.Builder namespaces(org.apache.camel.support.builder.Namespaces namespaces)
      Injects the XML Namespaces of prefix -> uri mappings
      Parameters:
      namespaces - the XML namespaces
    • namespaces

      public XQueryExpression.Builder 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 XQueryExpression.Builder namespace(List<PropertyDefinition> namespace)
      Injects the XML Namespaces of prefix -> uri mappings
    • id

      Sets the id of this node
    • trim

      public XQueryExpression.Builder trim(String trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • trim

      public XQueryExpression.Builder trim(boolean trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • expression

      public XQueryExpression.Builder expression(String expression)
      The expression value in your chosen language syntax
    • predicate

      public XQueryExpression.Builder predicate(org.apache.camel.Predicate predicate)