Enum Class YangXPathMathMode

java.lang.Object
java.lang.Enum<YangXPathMathMode>
org.opendaylight.yangtools.yang.xpath.api.YangXPathMathMode
All Implemented Interfaces:
Serializable, Comparable<YangXPathMathMode>, Constable

public enum YangXPathMathMode extends Enum<YangXPathMathMode>
YangXPathParser number compliance knobs. This enumeration defines what assumptions the parser can make -- affecting its optimization properties around constant folding when number expressions are involved.
  • Enum Constant Details

    • IEEE754

      public static final YangXPathMathMode IEEE754
      All number expressions are treated as double. This in spirit of XPath 1.0 -- any number expression starts its life as a double, making all operations subject to IEEE754 rounding and range rules.
    • EXACT

      public static final YangXPathMathMode EXACT
      All number expressions are treated as infinite-precision numbers. This follows the spirit of YANG 1.1 -- where mostly have integral types and decimal64 mapped to BigDecimal. Non-decimal numbers are mapped either to int, long or BigInteger.
  • Method Details

    • values

      public static YangXPathMathMode[] 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 YangXPathMathMode 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
    • getSupport

      public YangXPathMathSupport getSupport()
      Return YangXPathMathSupport which provides support for the this mode.
      Returns:
      YangXPathMathSupport supporting this mode.