- All Implemented Interfaces:
Serializable
,Comparable<FieldType>
,Constable
Type of a
LayoutField
. The following table shows the defined types
and their property restrictions:
Description | Type | Length or Occurrences | Numeric Scale | Default Value |
---|---|---|---|---|
Alpha numeric string | ALPHA |
Must be greater than 0 | Must be 0 | Empty string |
Date | DATE |
Either 4, 6 or 8 | Must be 0 | 01-01-0001 |
List array | LIST |
Must be greater than 0 | Must be 0 | Empty string |
End of list array | LISTEND |
N/A (set to 0) | N/A (set to 0) | N/A (set to null) |
Unsigned decimal | NUMERIC |
Must be greater than 0 | Greater or equal to 0 | 0 |
Chilean RUT | RUT |
Must be greater than 1 | Must be 1 | 0-0 |
Signed decimal | SIGNED |
Must be greater than 0 | Greater or equal to 0 | 0 |
Text string | TEXT |
Must be greater than 0 | Must be 0 | Empty string |
A LayoutField
of type LIST
represents a list
of fields with multiple occurrences (an array). The number of occurrences of
the fields contained in the list is given by the length of the LIST
. Each field in this list is accessed using it's
name
and an index
number where (0 <= index < occurrences)
.
The LISTEND
type is used to complete (or terminate)
the definition of a LayoutField
of type LIST
;
it does not represent an actual field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlphanumeric layout field (A).Checksum pseudo layout field (CS).Date layout field (D).List layout field (LB).End-of-list pseudo layout field (LE).Unsigned number layout field (N).RUT layout field (R).Signed number layout field (S).Text layout field (X).Version pseudo layout field (VR). -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldType
Returns theFieldType
with the suppliedalias
.getAlias()
Returns the alias of thisFieldType
.static FieldType
Returns the enum constant of this class with the specified name.static FieldType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALPHA
Alphanumeric layout field (A). -
DATE
Date layout field (D). -
LIST
List layout field (LB). -
LISTEND
End-of-list pseudo layout field (LE). -
NUMERIC
Unsigned number layout field (N). -
RUT
RUT layout field (R). -
SIGNED
Signed number layout field (S). -
TEXT
Text layout field (X). -
VERSION
Version pseudo layout field (VR). -
CHECKSUM
Checksum pseudo layout field (CS).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getAlias
Returns the alias of thisFieldType
.- Returns:
- the alias of this
FieldType
.
-
fromAlias
Returns theFieldType
with the suppliedalias
.- Parameters:
alias
- the alias of the requiredFieldType
.- Returns:
- the
FieldType
with suppliedalias
. - Throws:
NullPointerException
- ifalias
isnull
.IllegalArgumentException
- ifalias
is unknown.
-