|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.editor.preferences.ValidatorCobolIntegerInput
For editable numeric properties. Ensures only digits are entered.
Field Summary | |
---|---|
static String |
copyright
|
protected com.ibm.etools.systems.core.messages.SystemMessage |
currentMessage
|
protected com.ibm.etools.systems.core.messages.SystemMessage |
emptyMsg
|
protected com.ibm.etools.systems.core.messages.SystemMessage |
invalidMsg
|
protected int |
number
|
Fields inherited from interface com.ibm.etools.systems.core.ui.validators.ISystemValidator |
---|
Copyright |
Constructor Summary | |
---|---|
ValidatorCobolIntegerInput()
Constructor to use when the default error messages are ok |
|
ValidatorCobolIntegerInput(com.ibm.etools.systems.core.messages.SystemMessage emptyMsg)
Constructor to use when wanting to specify the "value required" error message, but use the default for the "Value not valid" error message |
|
ValidatorCobolIntegerInput(com.ibm.etools.systems.core.messages.SystemMessage emptyMsg,
com.ibm.etools.systems.core.messages.SystemMessage invalidMsg)
Constructor to use when wanting to specify both error messages |
Method Summary | |
---|---|
int |
getMaximumNameLength()
Return the max length for this name, or -1 if no max |
int |
getNumber()
If validation is true, you can call this to get the input as a number |
com.ibm.etools.systems.core.messages.SystemMessage |
getSystemMessage()
When isValid returns non-null, call this to get the SystemMessage object for the error versus the simple string message. |
String |
isValid(Object input)
|
String |
isValid(String input)
|
void |
setErrorMessages(com.ibm.etools.systems.core.messages.SystemMessage emptyMsg,
com.ibm.etools.systems.core.messages.SystemMessage invalidMsg)
Set the error messages, overriding the defaults |
com.ibm.etools.systems.core.messages.SystemMessage |
validate(String text)
For convenience, this is a shortcut to calling: |
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
protected int number
protected com.ibm.etools.systems.core.messages.SystemMessage emptyMsg
protected com.ibm.etools.systems.core.messages.SystemMessage invalidMsg
protected com.ibm.etools.systems.core.messages.SystemMessage currentMessage
Constructor Detail |
public ValidatorCobolIntegerInput()
public ValidatorCobolIntegerInput(com.ibm.etools.systems.core.messages.SystemMessage emptyMsg)
public ValidatorCobolIntegerInput(com.ibm.etools.systems.core.messages.SystemMessage emptyMsg, com.ibm.etools.systems.core.messages.SystemMessage invalidMsg)
Method Detail |
public void setErrorMessages(com.ibm.etools.systems.core.messages.SystemMessage emptyMsg, com.ibm.etools.systems.core.messages.SystemMessage invalidMsg)
public String isValid(Object input)
isValid
in interface ICellEditorValidator
ICellEditorValidator.isValid(java.lang.Object)
public String isValid(String input)
isValid
in interface IInputValidator
IInputValidator.isValid(java.lang.String)
,
getSystemMessage()
public com.ibm.etools.systems.core.messages.SystemMessage getSystemMessage()
getSystemMessage
in interface com.ibm.etools.systems.core.ui.validators.ISystemValidator
public int getMaximumNameLength()
getMaximumNameLength
in interface com.ibm.etools.systems.core.ui.validators.ISystemValidator
public com.ibm.etools.systems.core.messages.SystemMessage validate(String text)
if (isValid(text) != null)
msg = getSystemMessage();
validate
in interface com.ibm.etools.systems.core.ui.validators.ISystemValidator
public int getNumber()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |