Package io.xlate.edi.schema
Enum EDISyntaxRule.Type
- java.lang.Object
-
- java.lang.Enum<EDISyntaxRule.Type>
-
- io.xlate.edi.schema.EDISyntaxRule.Type
-
- All Implemented Interfaces:
Serializable,Comparable<EDISyntaxRule.Type>
- Enclosing interface:
- EDISyntaxRule
public static enum EDISyntaxRule.Type extends Enum<EDISyntaxRule.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONDITIONALX12: Type C EDIFACT: (D5) If first, then allEXCLUSIONX12: Type E EDIFACT: (D4) One or noneFIRSTONLYX12: N/A EDIFACT: (D7) If first, then none of the othersLISTX12: Type L EDIFACT: (D6) If first, then at least one morePAIREDX12: Type P EDIFACT: (D2) All or noneREQUIREDX12: Type R EDIFACT: (D3) One or moreSINGLEX12: N/A EDIFACT: (D1) One and only one
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EDISyntaxRule.TypefromString(String value)static EDISyntaxRule.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static EDISyntaxRule.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final EDISyntaxRule.Type SINGLE
X12: N/A EDIFACT: (D1) One and only one
-
PAIRED
public static final EDISyntaxRule.Type PAIRED
X12: Type P EDIFACT: (D2) All or none
-
REQUIRED
public static final EDISyntaxRule.Type REQUIRED
X12: Type R EDIFACT: (D3) One or more
-
EXCLUSION
public static final EDISyntaxRule.Type EXCLUSION
X12: Type E EDIFACT: (D4) One or none
-
CONDITIONAL
public static final EDISyntaxRule.Type CONDITIONAL
X12: Type C EDIFACT: (D5) If first, then all
-
LIST
public static final EDISyntaxRule.Type LIST
X12: Type L EDIFACT: (D6) If first, then at least one more
-
FIRSTONLY
public static final EDISyntaxRule.Type FIRSTONLY
X12: N/A EDIFACT: (D7) If first, then none of the others
-
-
Method Detail
-
values
public static EDISyntaxRule.Type[] 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 (EDISyntaxRule.Type c : EDISyntaxRule.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDISyntaxRule.Type 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
-
fromString
public static EDISyntaxRule.Type fromString(String value)
-
-