Пример #1
0
 private String getModelDiffsFree(java.util.List<GtaModelDiffContainer> diffContainers) {
   String result = "";
   // Fill in the "free" parameter
   for (GtaModelDiffContainer diffContainer : diffContainers) {
     if (diffContainer != null) {
       for (int i = 0; i < diffContainer.getFree().size(); i++) {
         GtaModelDiffDO modelDiffDO = diffContainer.getFree().get(i);
         if (modelDiffDO != null) {
           if (!result.isEmpty()) {
             result = result + ",";
           }
           result =
               result
                   + "list(what = \""
                   + modelDiffDO.getWhat()
                   + "\","
                   + "ind = "
                   + (modelDiffDO.getIndex())
                   + ","
                   + "dataset = "
                   + modelDiffDO.getDataset()
                   + ","
                   + "start = "
                   + modelDiffDO.getStart()
                   + ")";
         }
       }
     }
   }
   if (!result.isEmpty()) {
     result = "free = list(" + result + ")";
   }
   return result;
 }
Пример #2
0
  private String getModelDiffsChange(GtaModelDiffContainer diffContainer) {
    String result = "";

    TgmDataObject tgmDO;
    Tgm changesModel = null;
    if (diffContainer != null) {
      if (diffContainer.getChanges() != null) {
        GtaChangesModel changes = diffContainer.getChanges();
        String fileName = changes.getFilename();
        String pathName = changes.getPath();
        changesModel = getModel(fileName, pathName);
      }
    }

    return result;
  }