|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.InputVerifier
com.gridsystems.config.tools.TextVerifier
com.gridsystems.config.tools.PatternVerifier
public class PatternVerifier
Performs a validation based on the pattern specified on construction.
The pattern follows the syntax specified in the Pattern
documentation.
| Field Summary | |
|---|---|
protected java.lang.String |
id
Identifier of the error detected by this verifier. |
static java.lang.String |
ID_ERROR
Identifier for errors detected by this verifier. |
| Fields inherited from class com.gridsystems.config.tools.TextVerifier |
|---|
support |
| Constructor Summary | |
|---|---|
PatternVerifier(ErrorSupport support,
java.lang.String id,
java.util.regex.Pattern pattern)
Creates a new instance with the specified pattern. |
|
PatternVerifier(ErrorSupport support,
java.lang.String id,
java.lang.String pattern)
Creates a new instance with the specified pattern string and default flags. |
|
PatternVerifier(ErrorSupport support,
java.lang.String id,
java.lang.String pattern,
int flags)
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
cleanErrors()
Removes from the error support manager the list of errors of this verifier. |
boolean |
verify(java.lang.String text)
Validates a text string. |
| Methods inherited from class com.gridsystems.config.tools.TextVerifier |
|---|
updateError, verify |
| Methods inherited from class javax.swing.InputVerifier |
|---|
shouldYieldFocus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ID_ERROR
protected java.lang.String id
| Constructor Detail |
|---|
public PatternVerifier(ErrorSupport support,
java.lang.String id,
java.lang.String pattern)
support - The ErrorSupport instanceid - The error idpattern - The pattern string to use
public PatternVerifier(ErrorSupport support,
java.lang.String id,
java.lang.String pattern,
int flags)
support - The error support instanceid - The error idpattern - The pattern string to useflags - The flags for pattern compilation
public PatternVerifier(ErrorSupport support,
java.lang.String id,
java.util.regex.Pattern pattern)
support - The error support instanceid - The error idpattern - The pattern to use| Method Detail |
|---|
public boolean verify(java.lang.String text)
verify in class TextVerifiertext - The string to validate
public void cleanErrors()
TextVerifierThis method will be used on field deactivation.
cleanErrors in class TextVerifierTextVerifier.cleanErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||