protected override void finish() { if (!(getDateAndTimeInformationNuggetJSONKey().Equals("MonthLengthLookup"))) { throw new Exception("The key field has a value other than `MonthLengthLookup'."); } MonthLengthLookupInformationNuggetJSON result = new MonthLengthLookupInformationNuggetJSON(); 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.extraMonthLengthLookupInformationNuggetAppendPair(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(MonthLengthLookupInformationNuggetJSON result) { if (fieldGeneratorMonthIndex.have_value) { result.setMonthIndex((sbyte)(fieldGeneratorMonthIndex.value)); fieldGeneratorMonthIndex.have_value = false; } else if ((!(result.hasMonthIndex())) && !allow_incomplete) { error("When parsing the object for %what%, the \"MonthIndex\" field was missing."); } if (fieldGeneratorMonthName.have_value) { result.setMonthName(fieldGeneratorMonthName.value); fieldGeneratorMonthName.have_value = false; } else if ((!(result.hasMonthName())) && !allow_incomplete) { error("When parsing the object for %what%, the \"MonthName\" field was missing."); } if (fieldGeneratorYear.have_value) { result.setYear(fieldGeneratorYear.value); fieldGeneratorYear.have_value = false; } if (fieldGeneratorDaysInMonth.have_value) { result.setDaysInMonth((sbyte)(fieldGeneratorDaysInMonth.value)); fieldGeneratorDaysInMonth.have_value = false; } else if ((!(result.hasDaysInMonth())) && !allow_incomplete) { error("When parsing the object for %what%, the \"DaysInMonth\" field was missing."); } base.finish(result); }
protected abstract void handle_result(MonthLengthLookupInformationNuggetJSON new_result);
protected override void handle_result(MonthLengthLookupInformationNuggetJSON result) { top.value.Add(result); }
protected override void handle_result(MonthLengthLookupInformationNuggetJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }