* @return Returns the matches.
*/
@Override
public String getMatches() {
if (isNotValidStringType()) {
throw new MissingPropertyException("Matches constraint only applies to a String property",
MATCHES_CONSTRAINT, owningClass);
}
MatchesConstraint c = (MatchesConstraint)appliedConstraints.get(MATCHES_CONSTRAINT);
return c == null ? null : c.getRegex();
}