|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.cs.invoker.base.BeanInvokerValidation
Data can be validated before they are sent to EJB. Validation should be done inside an invoker. There is one validation supported: typed data validations. For typed data validation, Code Generation Tool will generate the pre-defined validation APIs according to the typed data definition. These pre-defined validations include StringValidatitor, FloatValidator, IntegerValidator, DoubleValidator and DateValidator etc.
Field Summary |
---|
Fields inherited from interface com.ibm.btt.base.types.TypeConstants |
---|
amended, CONV_TYPE_DEFAULT, CONV_TYPE_HOST, CONV_TYPE_OUTPUT, CONV_TYPE_SER, CONV_TYPE_XML, disabled, hidden, isAmended, isDisabled, isHidden, isMandatory, isOmitted, isReadOnly, mandatory, omitted, readOnly, TYPE_DEFAULT, TYPE_REGISTRY_INIT_SIZE |
Constructor Summary | |
---|---|
BeanInvokerValidation()
|
Method Summary | |
---|---|
java.lang.Object |
dateValidator(java.lang.Object toValidate,
java.lang.String lowerLimit,
java.lang.String upperLimit,
java.lang.String mask)
Validates the object of the Date type and, if successful, returns the object. |
java.lang.Object |
doubleValidator(java.lang.Object toValidate,
double minValue,
double maxValue)
Validates the object of the Double type and, if successful, returns the object. |
java.lang.Object |
floatValidator(java.lang.Object toValidate,
float minValue,
float maxValue)
Validates the object of the Float type and, if successful, returns the object. |
java.lang.Object |
integerValidator(java.lang.Object toValidate,
int minValue,
int maxValue)
Validates the object of the Integer type and, if successful, returns the object. |
java.lang.Object |
stringValidator(java.lang.Object toValidate,
int minLength,
int maxLength)
Validates an object of the String type and, if successful, returns the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanInvokerValidation()
Method Detail |
public java.lang.Object dateValidator(java.lang.Object toValidate, java.lang.String lowerLimit, java.lang.String upperLimit, java.lang.String mask) throws DSETypeException
toValidate
- ObjectlowerLimit
- A String representation for the earliest date allowed for the object.upperLimit
- A String representation for the latest date allowed for the object.mask
- converter using the java.text.SimpleDateFormat. Date Converter has the mask attribute, which sets the pattern of
the SimpleDateFormat. The default value of the property is "dd.MM.yyyy".
DSETypeException
public java.lang.Object doubleValidator(java.lang.Object toValidate, double minValue, double maxValue) throws DSETypeException
toValidate
- ObjectminValue
- A Double representation for the lowest double value allowed for the object. 0 means no limitationmaxValue
- A Double representation for the highest double value allowed for the object 0 means no limitation
DSETypeException
public java.lang.Object floatValidator(java.lang.Object toValidate, float minValue, float maxValue) throws DSETypeException
toValidate
- ObjectminValue
- A Float representation for the lowest double value allowed for the object. 0 means no limitationmaxValue
- A Float representation for the highest double value allowed for the object 0 means no limitation
DSETypeException
public java.lang.Object integerValidator(java.lang.Object toValidate, int minValue, int maxValue) throws DSETypeException
toValidate
- ObjectminValue
- A Int representation for the lowest double value allowed for the object. 0 means no limitationmaxValue
- A Int representation for the highest double value allowed for the object 0 means no limitation
DSETypeException
public java.lang.Object stringValidator(java.lang.Object toValidate, int minLength, int maxLength) throws DSETypeException
toValidate
- ObjectminLength
- A Int representation for the min length allowed for the object. 0 means no limitationmaxLength
- A Int representation for the max length allowed for the object. 0 means no limitation
DSETypeException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |