Enum YangXPathMathMode

    • Enum Constant Detail

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

      • values

        public static YangXPathMathMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (YangXPathMathMode c : YangXPathMathMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static YangXPathMathMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null