Exemplo n.º 1
0
 protected void finish(GeneralizedThingInformationNuggetJSON result)
 {
     if (fieldGeneratorWhatInformation.have_value)
     {
         result.setWhatInformation(fieldGeneratorWhatInformation.value);
         fieldGeneratorWhatInformation.have_value = false;
     }
     else if ((!(result.hasWhatInformation())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"WhatInformation\" field was missing.");
     }
     if (fieldGeneratorGeneralizedThing.have_value)
     {
         result.setGeneralizedThing(fieldGeneratorGeneralizedThing.value);
         fieldGeneratorGeneralizedThing.have_value = false;
     }
     else if ((!(result.hasGeneralizedThing())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"GeneralizedThing\" field was missing.");
     }
     if (fieldGeneratorDerivation.have_value)
     {
         result.setDerivation(fieldGeneratorDerivation.value);
         fieldGeneratorDerivation.have_value = false;
     }
     else if ((!(result.hasDerivation())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Derivation\" field was missing.");
     }
     base.finish(result);
 }