- java.lang.Object
-
- java.lang.Enum<EDIControlType.Type>
-
- io.xlate.edi.schema.EDIControlType.Type
-
- All Implemented Interfaces:
Serializable,Comparable<EDIControlType.Type>
- Enclosing interface:
- EDIControlType
public static enum EDIControlType.Type extends Enum<EDIControlType.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTROLSIndicates that the element identified byEDIControlType.getTrailerCountPosition()will contain a count of the control structures internal to theEDIControlType.NONENothing will be counted or validatedSEGMENTSIndicates that the element identified byEDIControlType.getTrailerCountPosition()will contain a count of the segments within theEDIControlType, including the header and trailer segments.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EDIControlType.TypefromString(String value)static EDIControlType.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static EDIControlType.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final EDIControlType.Type NONE
Nothing will be counted or validated
-
CONTROLS
public static final EDIControlType.Type CONTROLS
Indicates that the element identified byEDIControlType.getTrailerCountPosition()will contain a count of the control structures internal to theEDIControlType.
-
SEGMENTS
public static final EDIControlType.Type SEGMENTS
Indicates that the element identified byEDIControlType.getTrailerCountPosition()will contain a count of the segments within theEDIControlType, including the header and trailer segments.
-
-
Method Detail
-
values
public static EDIControlType.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 (EDIControlType.Type c : EDIControlType.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 EDIControlType.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 EDIControlType.Type fromString(String value)
-
-