result = candidateValue.startsWith(patternValue.writeValue());
break;
case MIN_LENGTH:
// TODO: is this correct? DLW
result = (candidateValue.length() >= Integer.parseInt(patternValue.writeValue()));
break;
case MAX_LENGTH:
// TODO: is this correct? DLW
result = (candidateValue.length() <= Integer.parseInt(patternValue.writeValue()));