Predefined Matchers

Below you find an overview describing the predefined matchers from the Calyxo Forms component. All of them implement the de.odysseus.calyxo.forms.Matcher interface and can be found in the de.odysseus.calyxo.forms.match package.

Name Class Description
notEmpty NotEmptyMatcher Matches the complete input string if its length is larger than zero. Otherwise the matcher fails. It has no properties.
regexp RegExpMatcher Tries to match the input with a regular expression. Returns the matched portion of the input, if successful. Property:
  • pattern - The regular expression.
trim TrimMatcher Strips off leading and trailing white space. It can not fail and has no properties.