|
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.ValidatorUniqueString
org.eclipse.rse.ui.validators.ValidatorSystemName
public class ValidatorSystemName
This class is used in dialogs that prompt for an alias name. The rules used are the same as for Java names, for simplicity. Depending on the constructor used, this will also check for duplicates. The IInputValidator interface is used by jface's InputDialog class and numerous other platform and system classes.
Field Summary | |
---|---|
protected boolean |
fUnique
|
protected SystemMessage |
msg_Invalid
|
Fields inherited from class org.eclipse.rse.ui.validators.ValidatorUniqueString |
---|
CASE_INSENSITIVE, CASE_SENSITIVE, caseSensitive, currentMessage, existingList, msg_Empty, msg_NonUnique, QUOTE, syntaxValidator, useUpperCase |
Constructor Summary | |
---|---|
ValidatorSystemName()
Use this constructor when the name need not be unique, and you just want the syntax checking. |
|
ValidatorSystemName(Collection existingNameList)
Use this constructor when the name must be unique. |
|
ValidatorSystemName(String[] existingNameList)
Use this constructor when the name must be unique. |
Method Summary | |
---|---|
SystemMessage |
isSyntaxOk(String newText)
Validate each character. |
void |
setErrorMessages(SystemMessage msg_Empty,
SystemMessage msg_NonUnique,
SystemMessage msg_Invalid)
Supply your own error message text. |
String |
toString()
|
Methods inherited from class org.eclipse.rse.ui.validators.ValidatorUniqueString |
---|
doMessageSubstitution, getExistingNamesList, getMaximumNameLength, getSystemMessage, getSystemMessageText, isValid, isValid, quotedToLowerCase, setCaseSensitive, setErrorMessages, setExistingNamesList, setExistingNamesList, setUseUpperCase, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean fUnique
protected SystemMessage msg_Invalid
Constructor Detail |
---|
public ValidatorSystemName(Collection existingNameList)
existingNameList
- a collection of existing names to compare against.
This collection will not be modified by the validator.public ValidatorSystemName(String[] existingNameList)
public ValidatorSystemName()
Method Detail |
---|
public void setErrorMessages(SystemMessage msg_Empty, SystemMessage msg_NonUnique, SystemMessage msg_Invalid)
msg_Empty
- error message when entry field is emptymsg_NonUnique
- error message when value entered is not uniquemsg_Invalid
- error message when syntax is not validpublic String toString()
toString
in class ValidatorUniqueString
public SystemMessage isSyntaxOk(String newText)
isSyntaxOk
in class ValidatorUniqueString
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |