Пример #1
0
 protected void finish(TerrierUploadClauseJSON result)
 {
     if (fieldGeneratorExpression.have_value)
     {
         result.setExpression(fieldGeneratorExpression.value);
         fieldGeneratorExpression.have_value = false;
     }
     else if ((!(result.hasExpression())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Expression\" field was missing.");
     }
     if (fieldGeneratorExpressionSource.have_value)
     {
         result.setExpressionSource(fieldGeneratorExpressionSource.value);
         fieldGeneratorExpressionSource.have_value = false;
     }
     if (fieldGeneratorMatchCode.have_value)
     {
         result.setMatchCode(fieldGeneratorMatchCode.value);
         fieldGeneratorMatchCode.have_value = false;
     }
     if (fieldGeneratorMatchCodeSource.have_value)
     {
         result.setMatchCodeSource(fieldGeneratorMatchCodeSource.value);
         fieldGeneratorMatchCodeSource.have_value = false;
     }
 }