|
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.ValidatorFilterString
public class ValidatorFilterString
This class is used in dialogs that prompt for filter strings. This class typically needs to be overridden for a particular subsystem factory provider. By default, it simply checks for uniqueness.
Field Summary | |
---|---|
static int |
MAX_FILTERSTRINGNAME_LENGTH
|
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 | |
---|---|
ValidatorFilterString(boolean caseSensitive)
Use this constructor when the name need not be unique, and you just want the syntax checking. |
|
ValidatorFilterString(Collection existingList,
boolean caseSensitive)
Constructor accepting a collection of existing strings, as simple strings. |
|
ValidatorFilterString(ISystemFilterString[] existingList,
boolean caseSensitive)
Constructor accepting an Array for the list of existing strings, as actual filter strings. |
|
ValidatorFilterString(String[] existingList,
boolean caseSensitive)
Constructor accepting an Array for the list of existing strings, as simple strings. |
Method Summary | |
---|---|
protected static String[] |
convertFilterStringsToStrings(ISystemFilterString[] filterStrings)
Converts an array of filter strings into an array of strings |
int |
getMaximumNameLength()
Return the max length for filter strings: 1000 |
SystemMessage |
isSyntaxOk(String newText)
Validate each character. |
void |
setDuplicateFilterStringErrorMessage(SystemMessage msg)
Set the error message to issue when a duplicate filter string is found. |
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_FILTERSTRINGNAME_LENGTH
protected SystemMessage msg_Invalid
Constructor Detail |
---|
public ValidatorFilterString(Collection existingList, boolean caseSensitive)
existingList
- A collection of strings to compare against.
This will not be modified by the validator.caseSensitive
- true if comparisons are to be case sensitive, false if case insensitive.public ValidatorFilterString(String[] existingList, boolean caseSensitive)
existingList
- An array containing list of existing strings to compare against.caseSensitive
- true if comparisons are to be case sensitive, false if case insensitive.public ValidatorFilterString(ISystemFilterString[] existingList, boolean caseSensitive)
existingList
- An array containing list of existing filter strings to compare against.caseSensitive
- true if comparisons are to be case sensitive, false if case insensitive.public ValidatorFilterString(boolean caseSensitive)
Method Detail |
---|
public void setDuplicateFilterStringErrorMessage(SystemMessage msg)
protected static String[] convertFilterStringsToStrings(ISystemFilterString[] filterStrings)
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
public int getMaximumNameLength()
getMaximumNameLength
in interface ISystemValidator
getMaximumNameLength
in class ValidatorUniqueString
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |