|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.data.Validator
public class Validator
This is actually a factory class that forwards the real Validation to the correct Validator class. For instance the pattern match validation will be forwarded to the PatternMatchValidator class
Field Summary |
---|
Constructor Summary | |
---|---|
Validator(java.lang.String type,
java.lang.String subtype,
java.lang.String value,
int errorMessageRID)
Create Validator object |
|
Validator(java.lang.String type,
java.lang.String subtype,
java.lang.String value,
java.lang.String errorMessage)
Create Validator object |
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
Return the specified error message for the case that the validation fails |
java.lang.String |
getValue()
Return the given value |
boolean |
validate(java.lang.String inputValue,
java.lang.String dataType)
Do the validation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Validator(java.lang.String type, java.lang.String subtype, java.lang.String value, int errorMessageRID)
type
- - Validation type, currently only “pattern match”. Might be more in the futuresubType
- - Validation subtype as defined in the ValidatorConstantsvalue
- - The value to validate againsterrorMessage
- - The message to display in case the validation failspublic Validator(java.lang.String type, java.lang.String subtype, java.lang.String value, java.lang.String errorMessage)
type
- - Validation type, currently only “pattern match”. Might be more in the futuresubType
- - Validation subtype as defined in the ValidatorConstantsvalue
- - The value to validate againsterrorMessage
- - The message to display in case the validation failsMethod Detail |
---|
public boolean validate(java.lang.String inputValue, java.lang.String dataType)
The
- value to validate
public java.lang.String getErrorMessage()
public java.lang.String getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |