|
org.eclipse.rse.ui.validators
Interface ISystemValidator
-
All Superinterfaces:
-
ICellEditorValidator,
IInputValidator
-
All Known Implementing Classes:
-
ValidatorArchiveName,
ValidatorConnectionName,
ValidatorFileFilterString,
ValidatorFileName,
ValidatorFileUniqueName,
ValidatorFilterName,
ValidatorFilterPoolName,
ValidatorFilterString,
ValidatorFolderName,
ValidatorIntegerInput,
ValidatorIntegerRangeInput,
ValidatorLocalPath,
ValidatorLongInput,
ValidatorLongRangeInput,
ValidatorPathName,
ValidatorPortInput,
ValidatorProfileName,
ValidatorServerPortInput,
ValidatorSourceType,
ValidatorSpecialChar,
ValidatorSystemName,
ValidatorUniqueString,
ValidatorUserId
-
public interface ISystemValidator
- extends
IInputValidator,
ICellEditorValidator
Our validators need to support querying max length, for generic rename dialogs.
They also need to support getting the message not only as a string, which isValid returns,
but also as a SystemMessage, which getSystemMessage() does if isValid returns non-null.
Method Summary
|
int
|
getMaximumNameLength
()
Return the max length for this name, or -1 if no max |
SystemMessage
|
getSystemMessage
()
If isValid returns non-null and you desire a full bodied SystemMessage versus a string,
call this method after isValid to get the full bodied SystemMessage. |
SystemMessage
|
validate
(
String text)
For convenience, this is a shortcut to calling:
if (isValid(text) ! |
getMaximumNameLength
int getMaximumNameLength()
- Return the max length for this name, or -1 if no max
-
-
getSystemMessage
SystemMessage getSystemMessage()
- If isValid returns non-null and you desire a full bodied SystemMessage versus a string,
call this method after isValid to get the full bodied SystemMessage.
Will be null if isValid returned null.
-
-
validate
SystemMessage validate(
String text)
- For convenience, this is a shortcut to calling:
if (isValid(text) != null)
msg = getSystemMessage();
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|