|
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.Objectcom.ibm.etools.iseries.rse.ui.validators.ValidatorIBMiObject
com.ibm.etools.iseries.rse.ui.validators.ValidatorQSYSCCSIDValue
public class ValidatorQSYSCCSIDValue
This class is used in dialogs that prompt for a CCSID value.
Valid CCSID values are any integer in the range 1 to 65535, inclusive.
Also, for now, *HEX and *JOB are allowed. (will change this later to enable
turning this on or off programatically).
Builds on ValidatorISeriesObject, but issues unique CCSID error messages. Calling isValid on an instance of this class will return null only if the string passed represents an interger in the valid range.
| Field Summary | |
|---|---|
protected int |
begin
|
static String |
Copyright
|
protected int |
end
|
static int |
MAX_CCSID_VALUE
|
static int |
MIN_CCSID_VALUE
|
| Fields inherited from class com.ibm.etools.iseries.rse.ui.validators.ValidatorIBMiObject |
|---|
areQuotesAllowed, currentMessage, DEFAULT_SINGLETON, EMPTY_ALLOWED_NO, EMPTY_ALLOWED_YES, INVARIANTS, isEmptyAllowed, isGenericAllowed, MAX_OBJNAME_LENGTH, maxLength, msg_Empty, msg_Invalid, msg_NotUnique, specialCharsExtended, specialCharsNumeric, uniqueNameValidator, VALIDCHARS_ENDPOS, VALIDCHARS_FIRSTPOS, VARIANTS, wasQuoted |
| Constructor Summary | |
|---|---|
ValidatorQSYSCCSIDValue()
Constructor for ValidatorISeriesCCSIDValue when empty string \ is not allowed. |
|
ValidatorQSYSCCSIDValue(boolean isEmptyAllowed)
Constructor for ValidatorISeriesCCSIDValue. |
|
| Method Summary | |
|---|---|
SystemMessage |
getEmptyMessage()
|
SystemMessage |
getInvalidMessage(String substitutionString)
|
int |
getMaximumNameLength()
Return the max number of digits for user-entered number: 5 |
static boolean |
isNumericAndInRange(String newText,
int begin,
int end)
Return true if the given string is all numeric, containing only digits 0-9, starting the search at the first character of the given input string, AND the integer value of the string is in the specified range |
String |
isValid(String newText)
Overide parent's method so we can check for valid CCSID range. . |
void |
setRange(int newBegin,
int newEnd)
Sets the valid range for this class. For now, only Integer range is allowed. |
| Methods inherited from class com.ibm.etools.iseries.rse.ui.validators.ValidatorIBMiObject |
|---|
containsBadCharacters, containsBadCharacters, containsBadCharacters, getExistingNamesList, getNotUniqueMessage, getQuotesAllowed, getSystemMessage, getSystemMessageText, isEmptyAllowed, isGenericAllowed, isNumeric, isNumeric, isOneOf, isQuoted, isSyntaxOk, isValid, onlyContains, onlyContains, reset, setCaseSensitive, setEmptyAllowed, setExistingNamesList, setExistingNamesList, setGenericAllowed, setQuotesAllowed, validate, wasQuoted |
| 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 int MIN_CCSID_VALUE
public static final int MAX_CCSID_VALUE
protected int begin
protected int end
| Constructor Detail |
|---|
public ValidatorQSYSCCSIDValue()
public ValidatorQSYSCCSIDValue(boolean isEmptyAllowed)
isEmptyAllowed - true if an empty string is valid| Method Detail |
|---|
public void setRange(int newBegin,
int newEnd)
public String isValid(String newText)
isValid in class ValidatorIBMiObjectnewText - the input text to be verified
public static boolean isNumericAndInRange(String newText,
int begin,
int end)
newText - input string to searchpublic int getMaximumNameLength()
getMaximumNameLength in class ValidatorIBMiObjectpublic SystemMessage getEmptyMessage()
getEmptyMessage in class ValidatorIBMiObjectpublic SystemMessage getInvalidMessage(String substitutionString)
getInvalidMessage in class ValidatorIBMiObject
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||