|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.validators.ValidatorSpecialChar
org.eclipse.rse.ui.validators.ValidatorUserId
public class ValidatorUserId
This class is used in dialogs that prompt for a userId. This does very basic userId validation, just to ensure there are no problems when the user Id is saved in the preferences. This means restricting use of a couple special characters that would mess up the key/value processing of the preference data. The IInputValidator interface is used by jface's InputDialog class and numerous other platform and system classes.
Field Summary |
---|
Fields inherited from class org.eclipse.rse.ui.validators.ValidatorSpecialChar |
---|
currentMessage, EMPTY_ALLOWED_NO, EMPTY_ALLOWED_YES, msg_Empty, msg_Invalid, specialChars |
Constructor Summary | |
---|---|
ValidatorUserId(boolean isEmptyAllowed)
Constructor |
Method Summary | |
---|---|
SystemMessage |
isSyntaxOk(java.lang.String newText)
We could do additional syntax checking here if we decide to. |
Methods inherited from class org.eclipse.rse.ui.validators.ValidatorSpecialChar |
---|
containsSpecialCharacters, doMessageSubstitution, getMaximumNameLength, getSystemMessage, getSystemMessageText, isValid, isValid, setErrorMessages, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatorUserId(boolean isEmptyAllowed)
Method Detail |
---|
public SystemMessage isSyntaxOk(java.lang.String newText)
isSyntaxOk
in class ValidatorSpecialChar
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |