Package com.fourjs.report.facturx
Enum Codes.DateFormat
- java.lang.Object
-
- java.lang.Enum<Codes.DateFormat>
-
- com.fourjs.report.facturx.Codes.DateFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<Codes.DateFormat>
- Enclosing class:
- Codes
public static enum Codes.DateFormat extends Enum<Codes.DateFormat>
date format: BT-2-0, BT-72-0, BT-74-0, BT-73-0, BT-9-0, BT-135-0, BT-134-0, BT-26-0, BT-7-0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CustomEntry1
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry10
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry2
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry3
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry4
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry5
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry6
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry7
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry8
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
CustomEntry9
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
No102
102
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Codes.DateFormat
fromString(String value)
Convert a String to a DateFormat.String
getValue()
Get the "Value" property valuestatic boolean
isNativeValue(String value)
Tests ifvalueOf(value)
would return a non custom enum valueString
toString()
Returns a string representation of the DateFormat.static Codes.DateFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static Codes.DateFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
No102
public static final Codes.DateFormat No102
102
-
CustomEntry1
public static final Codes.DateFormat CustomEntry1
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry2
public static final Codes.DateFormat CustomEntry2
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry3
public static final Codes.DateFormat CustomEntry3
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry4
public static final Codes.DateFormat CustomEntry4
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry5
public static final Codes.DateFormat CustomEntry5
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry6
public static final Codes.DateFormat CustomEntry6
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry7
public static final Codes.DateFormat CustomEntry7
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry8
public static final Codes.DateFormat CustomEntry8
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry9
public static final Codes.DateFormat CustomEntry9
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
CustomEntry10
public static final Codes.DateFormat CustomEntry10
Custom entry whose member "value" gets updated to "value" on calls tofromString(String value)
-
-
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 nameNullPointerException
- 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 classEnum<Codes.DateFormat>
- Returns:
- a string representation of the DateFormat.
-
fromString
public static Codes.DateFormat fromString(String value)
Convert a String to a DateFormat.
Throws aIllegalArgumentException
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 ifvalueOf(value)
would return a non custom enum value- Returns:
- true if if
valueOf(value)
would return a non custom enum value
-
-