public boolean isMatched(String s) {
    if (s == null) return false;
    switch (this) {
      case NONE: return s.isEmpty();
      case STR: return !s.isEmpty();
      case INT: return s.matches("\\d+");
      case PRI: return s.matches(Priorite.REGEX);
      case DAT: return Date.isMatched(s);
      case HRE: return Heure.isMatched(s);
      case REC: return Recurrence.isMatched(s);
      case DEL: return s.matches(Suppression.REGEX);
    }
    return false;
  }