Ejemplo n.º 1
0
 /**
  * DOCUMENT ME!
  *
  * @return DOCUMENT ME!
  */
 public boolean allMappingsComplete() {
   tblMappings.clearColors();
   final List<Mapping> content = getContent();
   for (final Mapping m : content) {
     if (m.getContent().equals(STRING_EMPTY) && !m.isAutoIncrement()) {
       return false;
     }
   }
   return true;
 }
Ejemplo n.º 2
0
 /**
  * Gibt den Eintrag an der Stelle columnIndex und rowIndex zurueck.
  *
  * @param rowIndex DOCUMENT ME!
  * @param columnIndex DOCUMENT ME!
  * @return DOCUMENT ME!
  */
 @Override
 public Object getValueAt(final int rowIndex, final int columnIndex) {
   final Mapping m = getRows().get(rowIndex);
   switch (columnIndex) {
     case COLUMN_TAGRET:
       {
         return m.getCompleteTarget();
       }
     case COLUMN_SOURCE:
       {
         return m.getContent();
       }
     case COLUMN_RELATIONPATH:
       {
         final String relNa = m.getPath();
         if (relNa == null) {
           return "";
         } else {
           return String.valueOf(relNa);
         }
       }
     case COLUMN_COUNTER:
       {
         return m.isAutoIncrement();
       }
     case COLUMN_COMPARE:
       {
         return m.isComparing();
       }
     case COLUMN_STRINGDATE:
       {
         final Boolean stringOrDate;
         if ((m.getEnclosingChar() == null) || (m.getEnclosingChar().length() == 0)) {
           stringOrDate = false;
         } else {
           stringOrDate = true;
         }
         return stringOrDate;
       }
   }
   return null;
 }