@@ -0,0 +1,1023 @@
+package task.util.type;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: benjamin%0A * Date: 06/10/13%0A * Time: 15:32%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic enum Type %7B%0A%0A  STR('L'),%0A  INT('R'),%0A  PRI('C'),%0A  DAT('C'),%0A  HRE('C'),%0A  REC('C'),%0A  DEL('C'),%0A  NONE('L');%0A%0A  private final char _align;%0A%0A  private Type(char c) %7B%0A    _align = c;%0A  %7D%0A%0A  public boolean center() %7B%0A    return _align == 'C';%0A  %7D%0A%0A  public boolean left() %7B%0A    return _align == 'L';%0A  %7D%0A%0A  public boolean right() %7B%0A    return _align == 'R';%0A  %7D%0A%0A  public boolean isMatched(String s) %7B%0A    if (s == null) return false;%0A    switch (this) %7B%0A      case NONE: return s.isEmpty();%0A      case STR: return !s.isEmpty();%0A      case INT: return s.matches(%22%5C%5Cd+%22);%0A      case PRI: return s.matches(Priorite.REGEX);%0A      case DAT: return Date.isMatched(s);%0A      case HRE: return Heure.isMatched(s);%0A      case REC: return Recurrence.isMatched(s);%0A      case DEL: return s.matches(Suppression.REGEX);%0A    %7D%0A    return false;%0A  %7D%0A%0A%7D%0A

Create Type.java