Exemplo n.º 1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorCommunicationType.have_value)
     {
         result.setCommunicationType(fieldGeneratorCommunicationType.value);
         fieldGeneratorCommunicationType.have_value = false;
     }
     else if ((!(result.hasCommunicationType())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"CommunicationType\" field was missing.");
     }
     if (fieldGeneratorAutoListen.have_value)
     {
         result.setAutoListen(fieldGeneratorAutoListen.value);
         fieldGeneratorAutoListen.have_value = false;
     }
     if (fieldGeneratorNameWithMissingInfo.have_value)
     {
         result.setNameWithMissingInfo(fieldGeneratorNameWithMissingInfo.value);
         fieldGeneratorNameWithMissingInfo.have_value = false;
     }
     else if ((!(result.hasNameWithMissingInfo())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"NameWithMissingInfo\" field was missing.");
     }
 }