Enum Codes.DateFormat

    • Method Detail

      • values

        public static Codes.DateFormat[] 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 (Codes.DateFormat c : Codes.DateFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Codes.DateFormat 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
      • getValue

        public String getValue()
        Get the "Value" property value
        Returns:
        value
      • toString

        public String toString()
        Returns a string representation of the DateFormat.
        Overrides:
        toString in class Enum<Codes.DateFormat>
        Returns:
        a string representation of the DateFormat.
      • fromString

        public static Codes.DateFormat fromString​(String value)
        Convert a String to a DateFormat.
        Throws a IllegalArgumentException if the value doesn't exist unless the system property "facturx.laxenums" is set to true. In the latter case, a custom value is returned if available.
        Returns:
        a DateFormat that represents the String.
      • isNativeValue

        public static boolean isNativeValue​(String value)
        Tests if valueOf(value) would return a non custom enum value
        Returns:
        true if if valueOf(value) would return a non custom enum value