protected void finish(FlightBookingSearchSpecJSON result) { if (fieldGeneratorCountryCode.have_value) { result.setCountryCode(fieldGeneratorCountryCode.value); fieldGeneratorCountryCode.have_value = false; } if (fieldGeneratorLanguageCode.have_value) { result.setLanguageCode(fieldGeneratorLanguageCode.value); fieldGeneratorLanguageCode.have_value = false; } if (fieldGeneratorFlightTravelLocationForClient.have_value) { result.setFlightTravelLocationForClient(fieldGeneratorFlightTravelLocationForClient.value); fieldGeneratorFlightTravelLocationForClient.have_value = false; } if (fieldGeneratorFlightBookingFilter.have_value) { result.setFlightBookingFilter(fieldGeneratorFlightBookingFilter.value); fieldGeneratorFlightBookingFilter.have_value = false; } else if ((!(result.hasFlightBookingFilter())) && !allow_incomplete) { error("When parsing the object for %what%, the \"FlightBookingFilter\" field was missing."); } }
private void fromJSONFlightBookingSearchSpec(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); FlightBookingSearchSpecJSON convert_classy = FlightBookingSearchSpecJSON.from_json(json_value, ignore_extras, true); setFlightBookingSearchSpec(convert_classy); }
public void setFlightBookingSearchSpec(FlightBookingSearchSpecJSON new_value) { if (flagHasFlightBookingSearchSpec) { } flagHasFlightBookingSearchSpec = true; storeFlightBookingSearchSpec = new_value; }
protected override void finish() { FlightBookingSearchSpecJSON result = new FlightBookingSearchSpecJSON(); 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.extraFlightBookingSearchSpecAppendPair(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 override void handle_result(FlightBookingSearchSpecJSON result) { top.value.Add(result); }
protected override void handle_result(FlightBookingSearchSpecJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(FlightBookingSearchSpecJSON new_result);