private void fromJSONSourceTimeZone(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); TimeZoneJSON convert_classy = TimeZoneJSON.from_json(json_value, ignore_extras, true); setSourceTimeZone(convert_classy); }
public void setTimeZone(TimeZoneJSON new_value) { if (flagHasTimeZone) { } flagHasTimeZone = true; storeTimeZone = new_value; }
public void setDestinationTimeZone(TimeZoneJSON new_value) { if (flagHasDestinationTimeZone) { } flagHasDestinationTimeZone = true; storeDestinationTimeZone = new_value; }
protected override void finish() { TimeZoneJSON result = new TimeZoneJSON(); 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.extraTimeZoneAppendPair(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(TimeZoneJSON result) { if (fieldGeneratorOlsonName.have_value) { result.setOlsonName(fieldGeneratorOlsonName.value); fieldGeneratorOlsonName.have_value = false; } else if ((!(result.hasOlsonName())) && !allow_incomplete) { error("When parsing the object for %what%, the \"OlsonName\" field was missing."); } if (fieldGeneratorLabel.have_value) { result.setLabel(fieldGeneratorLabel.value); fieldGeneratorLabel.have_value = false; } if (fieldGeneratorSpokenLabel.have_value) { result.setSpokenLabel(fieldGeneratorSpokenLabel.value); fieldGeneratorSpokenLabel.have_value = false; } }
protected override void handle_result(TimeZoneJSON result) { top.value.Add(result); }
protected override void handle_result(TimeZoneJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(TimeZoneJSON new_result);