protected override void finish() { FlightStatusBoardingInfoJSON result = new FlightStatusBoardingInfoJSON(); Debug.Assert(result != null); finish(result); int extra_count = unknownFieldGenerator.field_names.Count; Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count); for (int extra_num = 0; extra_num < extra_count; ++extra_num) { result.extraFlightStatusBoardingInfoAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]); } unknownFieldGenerator.field_names.Clear(); unknownFieldGenerator.field_values.Clear(); unknownFieldGenerator.index = new Dictionary <string, JSONValue>(); handle_result(result); }
protected void finish(FlightStatusBoardingInfoJSON result) { if (fieldGeneratorActualDateTime.have_value) { result.setActualDateTime(fieldGeneratorActualDateTime.value); fieldGeneratorActualDateTime.have_value = false; } if (fieldGeneratorEstimatedDateTime.have_value) { result.setEstimatedDateTime(fieldGeneratorEstimatedDateTime.value); fieldGeneratorEstimatedDateTime.have_value = false; } if (fieldGeneratorScheduledDateTime.have_value) { result.setScheduledDateTime(fieldGeneratorScheduledDateTime.value); fieldGeneratorScheduledDateTime.have_value = false; } if (fieldGeneratorOperationalDateTime.have_value) { result.setOperationalDateTime(fieldGeneratorOperationalDateTime.value); fieldGeneratorOperationalDateTime.have_value = false; } if (fieldGeneratorOperationalDateTimeType.have_value) { result.setOperationalDateTimeType(fieldGeneratorOperationalDateTimeType.value); fieldGeneratorOperationalDateTimeType.have_value = false; } if (fieldGeneratorDeviationFromScheduled.have_value) { result.setDeviationFromScheduled(fieldGeneratorDeviationFromScheduled.value); fieldGeneratorDeviationFromScheduled.have_value = false; } if (fieldGeneratorStateInTimeline.have_value) { result.setStateInTimeline(fieldGeneratorStateInTimeline.value); fieldGeneratorStateInTimeline.have_value = false; } if (fieldGeneratorWaitingPeriod.have_value) { result.setWaitingPeriod(fieldGeneratorWaitingPeriod.value); fieldGeneratorWaitingPeriod.have_value = false; } }
protected override void handle_result(FlightStatusBoardingInfoJSON result) { top.value.Add(result); }
protected override void handle_result(FlightStatusBoardingInfoJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(FlightStatusBoardingInfoJSON new_result);