public class RegexValidator extends java.lang.Object implements DocumentValidator
Constructor and Description |
---|
RegexValidator()
Constructor method for i18n purposes only.
|
RegexValidator(java.lang.String regex)
Constructor method with regex parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validate(javax.swing.text.JTextComponent comp)
Checks the document contents against the regular expression.
|
public RegexValidator() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic RegexValidator(java.lang.String regex)
regex
- Regular expression to matchjava.lang.NullPointerException
- If a parameter is null
java.lang.IllegalArgumentException
- If a parameter is invalidpublic boolean validate(javax.swing.text.JTextComponent comp)
validate
in interface DocumentValidator
comp
- The text componentCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.