|
RSE Release 1.0 |
|||||||||||
| 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.ValidatorUserActionName
This class is used to verify a user defined action's name.
| Field Summary | |
|---|---|
protected boolean |
fUnique
|
static int |
MAX_UDANAME_LENGTH
|
protected SystemMessage |
msg_Invalid
|
protected IWorkspace |
workspace
|
| 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 | |
|---|---|
ValidatorUserActionName()
Use this constructor when the name need not be unique, and you just want the syntax checking. |
|
ValidatorUserActionName(String[] existingNameList)
Use this constructor when the name must be unique. |
|
ValidatorUserActionName(Vector existingNameList)
Use this constructor when the name must be unique. |
|
| Method Summary | |
|---|---|
protected boolean |
checkForBadCharacters(String newText)
Overridable method for invalidate character check, beyond what this class offers |
int |
getMaximumNameLength()
Return the max length for folder names: 256 |
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, 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 |
| Methods inherited from interface org.eclipse.rse.ui.validators.ISystemValidator |
|---|
getSystemMessage, validate |
| Methods inherited from interface org.eclipse.jface.dialogs.IInputValidator |
|---|
isValid |
| Methods inherited from interface org.eclipse.jface.viewers.ICellEditorValidator |
|---|
isValid |
| Field Detail |
public static final int MAX_UDANAME_LENGTH
protected boolean fUnique
protected SystemMessage msg_Invalid
protected IWorkspace workspace
| Constructor Detail |
public ValidatorUserActionName(Vector existingNameList)
public ValidatorUserActionName(String[] existingNameList)
public ValidatorUserActionName()
| 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 validprotected boolean checkForBadCharacters(String newText)
public String toString()
toString in class ValidatorUniqueStringpublic SystemMessage isSyntaxOk(String newText)
isSyntaxOk in class ValidatorUniqueStringpublic int getMaximumNameLength()
getMaximumNameLength in interface ISystemValidatorgetMaximumNameLength in class ValidatorUniqueString
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||