- All Implemented Interfaces:
Serializable,Comparable<EDIStreamEvent>
Enumeration of stream event types that may be encountered by the
EDIStreamReader.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvent for a simple element or component element (within a composite).Event for binary element dataEvent for an error relating to the data received in an element.Event for an error relating to the an occurrence of an element.Event for the end of a composite element.Event for the end of a functional group.Event for the end of an interchange.Event for the end of a data loop (logical grouping of segments).Event for the end of a segment.Event for the end of a transaction.Event for an error relating to a segmentEvent for the start of a composite element.Event for the start of a functional group.Event for the start of an interchange.Event for the start of a data loop (logical grouping of segments).Event for the start of a segment.Event for the start of a transaction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisError()Indicates whether a particular EDIStreamEvent represents a validation error.static EDIStreamEventReturns the enum constant of this type with the specified name.static EDIStreamEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ELEMENT_DATA
Event for a simple element or component element (within a composite). -
ELEMENT_DATA_BINARY
Event for binary element data- See Also:
-
START_COMPOSITE
Event for the start of a composite element. -
END_COMPOSITE
Event for the end of a composite element. -
START_SEGMENT
Event for the start of a segment. -
END_SEGMENT
Event for the end of a segment. -
START_INTERCHANGE
Event for the start of an interchange. -
END_INTERCHANGE
Event for the end of an interchange. -
START_GROUP
Event for the start of a functional group. -
END_GROUP
Event for the end of a functional group. -
START_TRANSACTION
Event for the start of a transaction. -
END_TRANSACTION
Event for the end of a transaction. -
START_LOOP
Event for the start of a data loop (logical grouping of segments). -
END_LOOP
Event for the end of a data loop (logical grouping of segments). -
SEGMENT_ERROR
Event for an error relating to a segment -
ELEMENT_DATA_ERROR
Event for an error relating to the data received in an element. -
ELEMENT_OCCURRENCE_ERROR
Event for an error relating to the an occurrence of an element. E.g. a missing required element.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isError
public boolean isError()Indicates whether a particular EDIStreamEvent represents a validation error.- Returns:
- true when the event represents a validation error, otherwise false.
-