/** * Empty string, null, and the HL7 explicit null (two double-quotes) are passed. */ public ValidationException[] apply(String value) { if (value == null || value.equals("\"\"") || value.equals("")) { return passed(); } Matcher matcher = myPattern.matcher(value); return result(matcher.matches(), value); }
/** * Empty string, null, and the HL7 explicit null (two double-quotes) are passed. */ public ValidationException[] apply(String value) { if (value == null || value.equals("\"\"") || value.equals("")) { return passed(); } Matcher matcher = myPattern.matcher(value); return result(matcher.matches(), value); }