Enum Class Codes.LineReason

java.lang.Object
java.lang.Enum<Codes.LineReason>
com.fourjs.report.facturx.Codes.LineReason
All Implemented Interfaces:
Serializable, Comparable<Codes.LineReason>, java.lang.constant.Constable
Enclosing class:
Codes

public static enum Codes.LineReason extends Enum<Codes.LineReason>
Line Reason: BT-X-8
  • Enum Constant Details

  • Method Details

    • values

      public static Codes.LineReason[] 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 Codes.LineReason 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
    • getCode

      public String getCode()
      Get the "Code" property value
      Returns:
      code
    • getName

      public String getName()
      Get the "Name" property value
      Returns:
      name
    • toString

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

      public static Codes.LineReason fromString(String value)
      Convert a String to a LineReason.
      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 LineReason 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