Enum Class XPathExpressionResult

java.lang.Object
java.lang.Enum<XPathExpressionResult>
org.citrusframework.xml.xpath.XPathExpressionResult
All Implemented Interfaces:
Serializable, Comparable<XPathExpressionResult>, Constable

public enum XPathExpressionResult extends Enum<XPathExpressionResult>
Enumeration representing the possible result types for XPath expression evaluation. In Citrus XPath expressions a prefix may determine the result type like this: string://MyExpressionString/Value number://MyExpressionString/Value boolean://MyExpressionString/Value The result type prefix is supposed to be stripped off before expression evaluation and determines the evaluation result.
Author:
Christoph Deppisch
  • Enum Constant Details

  • Method Details

    • values

      public static XPathExpressionResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static XPathExpressionResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static XPathExpressionResult fromString(String value, XPathExpressionResult defaultResult)
      Get the enumeration value from an expression string. According to the leading prefix and a default result type the enumeration value is returned.
      Parameters:
      value -
      Returns:
    • getAsQName

      public QName getAsQName()
      Get a constant QName instance from this enumerations value.
      Returns:
    • cutOffPrefix

      public static String cutOffPrefix(String expression)
      Cut off the leading result type prefix in a XPath expression string.
      Parameters:
      expression -
      Returns: