Class XQueryExpression.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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)