|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ValidatorSpecialChar com.ibm.etools.iseries.edit.wizards.validator.ValidatorFieldType
public class ValidatorFieldType
This class is used in dialogs that prompt for a field type. The IInputValidator interface is used by jface's InputDialog class and numerous other platform and system classes.
Field Summary | |
---|---|
static String |
Copyright
|
static String |
FIELDTYPE_INVALID_CHARS
|
static int |
FIELDTYPE_MAXLENGTH_NAME
|
static String |
reservedPage
|
static String[] |
reservedWordsForDate
|
Constructor Summary | |
---|---|
ValidatorFieldType(boolean emptyAllowed,
String specialChars)
Constructor when a blank field name is ok |
|
ValidatorFieldType(boolean emptyAllowed,
SystemMessage emptyMessage,
SystemMessage invalidMessage,
String specialChars)
Constructor for subclasses, override it using different error messages |
|
ValidatorFieldType(String specialChars)
Constructor when a blank name is not ok |
Method Summary | |
---|---|
protected String |
doMessageSubstitution(SystemMessage msg,
String substitution)
Helper method to substitute data into a message |
protected boolean |
followNamingRule(String text)
|
int |
getMaximumNameLength()
Return the max number of chars for user ID: 128 |
boolean |
isEmptyAllowed()
|
boolean |
isReserved(String text)
|
boolean |
isReservedForDate(String text)
|
boolean |
isReservedForPage(String text)
|
SystemMessage |
isSyntaxOk(String newText)
We could do additional syntax checking here if we decide to. |
String |
isValid(String newText)
Validate each character. |
boolean |
isValidChar(char ch)
|
void |
setEmptyAllowed(boolean b)
|
void |
setFunctionAllowed(boolean b)
|
void |
setReservedAllowed(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
public static final String[] reservedWordsForDate
public static final String reservedPage
public static final String FIELDTYPE_INVALID_CHARS
public static final int FIELDTYPE_MAXLENGTH_NAME
Constructor Detail |
---|
public ValidatorFieldType(String specialChars)
public ValidatorFieldType(boolean emptyAllowed, String specialChars)
public ValidatorFieldType(boolean emptyAllowed, SystemMessage emptyMessage, SystemMessage invalidMessage, String specialChars)
Method Detail |
---|
public SystemMessage isSyntaxOk(String newText)
public int getMaximumNameLength()
public String isValid(String newText)
protected boolean followNamingRule(String text)
public boolean isValidChar(char ch)
public boolean isReserved(String text)
public boolean isReservedForDate(String text)
public boolean isReservedForPage(String text)
public boolean isEmptyAllowed()
public void setEmptyAllowed(boolean b)
b
- public void setReservedAllowed(boolean b)
b
- public void setFunctionAllowed(boolean b)
b
- protected String doMessageSubstitution(SystemMessage msg, String substitution)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |