public final class OtfValidator extends java.lang.Object implements OtfMessageAcceptor
| Constructor and Description |
|---|
OtfValidator(OtfMessageAcceptor delegate,
LongDictionary allFields,
LongDictionary requiredFields) |
| Modifier and Type | Method and Description |
|---|---|
MessageControl |
onComplete() |
boolean |
onError(ValidationError error,
long messageType,
int tagNumber,
AsciiFieldFlyweight value) |
MessageControl |
onField(int tag,
AsciiBuffer buffer,
int offset,
int length) |
MessageControl |
onGroupBegin(int tag,
int numInGroup,
int index)
Called at the beginning of each group entry.
|
MessageControl |
onGroupEnd(int tag,
int numInGroup,
int index)
Called at the end of each group entry
|
MessageControl |
onGroupHeader(int tag,
int numInGroup)
Called at the beginning of a repeating group.
|
MessageControl |
onNext() |
public OtfValidator(OtfMessageAcceptor delegate, LongDictionary allFields, LongDictionary requiredFields)
public MessageControl onNext()
onNext in interface OtfMessageAcceptorpublic MessageControl onComplete()
onComplete in interface OtfMessageAcceptorpublic MessageControl onField(int tag, AsciiBuffer buffer, int offset, int length)
onField in interface OtfMessageAcceptorpublic MessageControl onGroupHeader(int tag, int numInGroup)
OtfMessageAcceptoronGroupHeader in interface OtfMessageAcceptortag - the tag number of the field representing the number of elements, eg NoAllocsnumInGroup - the total number of elements in the grouppublic MessageControl onGroupBegin(int tag, int numInGroup, int index)
OtfMessageAcceptoronGroupBegin in interface OtfMessageAcceptortag - the tag number of the field representing the number of elements, eg NoAllocsnumInGroup - the total number of elements in the groupindex - the index of the element within the grouppublic MessageControl onGroupEnd(int tag, int numInGroup, int index)
OtfMessageAcceptoronGroupEnd in interface OtfMessageAcceptortag - the tag number of the field representing the number of elements, eg NoAllocsnumInGroup - the total number of elements in the groupindex - the index of the element within the grouppublic boolean onError(ValidationError error, long messageType, int tagNumber, AsciiFieldFlyweight value)
onError in interface OtfMessageAcceptorCopyright © 2015-2022 Real Logic Limited. All Rights Reserved.