Class 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.
  • Constructor Details

    • XQueryExpression

      public XQueryExpression()
    • XQueryExpression

      public XQueryExpression(String expression)
  • Method Details

    • getLanguage

      public String getLanguage()
      Overrides:
      getLanguage in class ExpressionDefinition
    • 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.