private void fromJSONArguments(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONArrayValue json_array1 = json_value.array_value(); if (json_array1 == null) { throw new Exception("The value for field Arguments of GeonameAttributeWithArgumentsJSON is not an array."); } int count1 = json_array1.componentCount(); List <GeonameAttributeArgumentJSON> vector_Arguments1 = new List <GeonameAttributeArgumentJSON>(count1); for (int num1 = 0; num1 < count1; ++num1) { GeonameAttributeArgumentJSON convert_classy = GeonameAttributeArgumentJSON.from_json(json_array1.component(num1), ignore_extras, true); vector_Arguments1.Add(convert_classy); } initArguments(); for (int num1 = 0; num1 < vector_Arguments1.Count; ++num1) { appendArguments(vector_Arguments1[num1]); } for (int num1 = 0; num1 < vector_Arguments1.Count; ++num1) { } }
protected override void finish() { GeonameAttributeArgumentJSON result = new GeonameAttributeArgumentJSON(); Debug.Assert(result != null); finish(result); handle_result(result); }
public void appendArguments(GeonameAttributeArgumentJSON to_append) { if (!flagHasArguments) { flagHasArguments = true; storeArguments.Clear(); } Debug.Assert(flagHasArguments); storeArguments.Add(to_append); }
protected void finish(GeonameAttributeArgumentJSON result) { if (fieldGeneratorAreaUnit.have_value) { result.setAreaUnit(fieldGeneratorAreaUnit.value); fieldGeneratorAreaUnit.have_value = false; } if (fieldGeneratorUnitOfMeasure.have_value) { result.setUnitOfMeasure(fieldGeneratorUnitOfMeasure.value); fieldGeneratorUnitOfMeasure.have_value = false; } if (fieldGeneratorIsOfficial.have_value) { result.setIsOfficial(fieldGeneratorIsOfficial.value); fieldGeneratorIsOfficial.have_value = false; } if (fieldGeneratorDateTimeRangeSpec.have_value) { result.setDateTimeRangeSpec(fieldGeneratorDateTimeRangeSpec.value); fieldGeneratorDateTimeRangeSpec.have_value = false; } }
protected override void handle_result(GeonameAttributeArgumentJSON result) { top.value.Add(result); }
protected override void handle_result(GeonameAttributeArgumentJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(GeonameAttributeArgumentJSON new_result);