protected void finish(DescriptiveTextTemplateJSON result)
 {
     if (fieldGeneratorTitle.have_value)
     {
         result.setTitle(fieldGeneratorTitle.value);
         fieldGeneratorTitle.have_value = false;
     }
     else if ((!(result.hasTitle())) && (!allow_unpolished) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Title\" field was missing.");
     }
     if (fieldGeneratorSecondaryTitle.have_value)
     {
         result.setSecondaryTitle(fieldGeneratorSecondaryTitle.value);
         fieldGeneratorSecondaryTitle.have_value = false;
     }
     if (fieldGeneratorSection1.have_value)
     {
         result.setSection1(fieldGeneratorSection1.value);
         fieldGeneratorSection1.have_value = false;
     }
     if (fieldGeneratorSection2.have_value)
     {
         result.setSection2(fieldGeneratorSection2.value);
         fieldGeneratorSection2.have_value = false;
     }
     if (fieldGeneratorFooter.have_value)
     {
         result.setFooter(fieldGeneratorFooter.value);
         fieldGeneratorFooter.have_value = false;
     }
     if (fieldGeneratorActionAndroidIntent.have_value)
     {
         result.setActionAndroidIntent(fieldGeneratorActionAndroidIntent.value);
         fieldGeneratorActionAndroidIntent.have_value = false;
     }
     if (fieldGeneratorActionURIs.have_value)
     {
         result.initActionURIs();
         int count = fieldGeneratorActionURIs.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendActionURIs(fieldGeneratorActionURIs.value[num]);
         }
         fieldGeneratorActionURIs.value.Clear();
         fieldGeneratorActionURIs.have_value = false;
     }
     base.finish(result);
 }
        protected override void finish()
        {
            if (!(getTemplateJSONKey().Equals("DescriptiveText")))
            {
                throw new Exception("The key field has a value other than `DescriptiveText'.");
            }
            DescriptiveTextTemplateJSON result = new DescriptiveTextTemplateJSON();

            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.extraDescriptiveTextTemplateAppendPair(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(DescriptiveTextTemplateJSON result)
 {
     top.value.Add(result);
 }
        protected override void handle_result(DescriptiveTextTemplateJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
 protected abstract void handle_result(DescriptiveTextTemplateJSON new_result);