validate method
dynamic
validate()
Implementation
validate() {
// check for required fields
// alas, we cannot check 'sign' because it's a primitive and you chose the non-beans generator.
// check that fields of type enum have valid values
if (isSetSign() && !EngineSignType.VALID_VALUES.contains(sign)) {
throw new TProtocolError(TProtocolErrorType.UNKNOWN,
"The field 'sign' has been assigned the invalid value $sign");
}
}