private void fromJSONDeviationFromScheduled(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); TimeDifferenceJSON convert_classy = TimeDifferenceJSON.from_json(json_value, ignore_extras, true); setDeviationFromScheduled(convert_classy); }
private void fromJSONWaitingPeriod(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); TimeDifferenceJSON convert_classy = TimeDifferenceJSON.from_json(json_value, ignore_extras, true); setWaitingPeriod(convert_classy); }
public void setDeviationFromScheduled(TimeDifferenceJSON new_value) { if (flagHasDeviationFromScheduled) { } flagHasDeviationFromScheduled = true; storeDeviationFromScheduled = new_value; }
public void setWaitingPeriod(TimeDifferenceJSON new_value) { if (flagHasWaitingPeriod) { } flagHasWaitingPeriod = true; storeWaitingPeriod = new_value; }
protected override void finish() { TimeDifferenceJSON result = new TimeDifferenceJSON(); 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.extraTimeDifferenceAppendPair(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(TimeDifferenceJSON result) { if (fieldGeneratorAmount.have_value) { result.setAmount(fieldGeneratorAmount.value); fieldGeneratorAmount.have_value = false; } else if ((!(result.hasAmount())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Amount\" field was missing."); } if (fieldGeneratorText.have_value) { result.setText(fieldGeneratorText.value); fieldGeneratorText.have_value = false; } else if ((!(result.hasText())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Text\" field was missing."); } if (fieldGeneratorSpokenText.have_value) { result.setSpokenText(fieldGeneratorSpokenText.value); fieldGeneratorSpokenText.have_value = false; } else if ((!(result.hasSpokenText())) && !allow_incomplete) { error("When parsing the object for %what%, the \"SpokenText\" field was missing."); } if (fieldGeneratorShortText.have_value) { result.setShortText(fieldGeneratorShortText.value); fieldGeneratorShortText.have_value = false; } else if ((!(result.hasShortText())) && !allow_incomplete) { error("When parsing the object for %what%, the \"ShortText\" field was missing."); } }
protected override void handle_result(TimeDifferenceJSON result) { top.value.Add(result); }
protected override void handle_result(TimeDifferenceJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(TimeDifferenceJSON new_result);