public void validate(String value, String pattern, String errorKey)
throws DocumentParseException
{
if (_matcher == null)
_matcher = new RegexpMatcher();
if (_matcher.matches(pattern, value))
return;
throw new InvalidStringException(Tapestry.format(errorKey, value), value, getLocation());