|
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.dse.base.types.AbstractValidator
com.ibm.dse.base.types.KCollValidator
This class is a Validator for compound business objects that are KeyedCollections. It checks if the inner elements of the keyed collection are valid. It should be extended if further rules (related to the business object that the keyed collection represents) are required.
Field Summary |
---|
Fields inherited from class com.ibm.dse.base.types.AbstractValidator |
---|
keyValuePairs |
Fields inherited from interface com.ibm.dse.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 | |
---|---|
KCollValidator()
Creates a KCollValidator object. |
|
KCollValidator(java.util.Hashtable keyValuePairs)
Creates a KCollValidator object. |
Method Summary | |
---|---|
java.lang.Object |
validate(java.lang.Object toValidate,
PropertyDescription descriptor)
Validates the object passed and, if successful, returns the object. |
java.lang.Object |
validate(java.lang.Object toValidate,
PropertyDescription descriptor,
Hashtable parameters)
Validates the object passed and, if successful, returns the object. |
java.lang.Object |
validateForType(java.lang.Object toValidate,
PropertyDescription descriptor,
Hashtable parameters)
Validates the object passed (which must be a keyed collection or a hashtable containing the keyed collection elements) and, if successful, returns the object. |
protected java.lang.Object |
validateHashtable(Hashtable elements,
PropertyDescription descriptor)
Validates the keyed collection elements passed within the Hashtable and, if succcessful, returns the Hashtable. |
Methods inherited from class com.ibm.dse.base.types.AbstractValidator |
---|
getParameters, readExternal, validate, validate, validate, validateForType, validateParams, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KCollValidator()
public KCollValidator(java.util.Hashtable keyValuePairs)
keyValuePairs
- java.util.HashtableMethod Detail |
public java.lang.Object validate(java.lang.Object toValidate, PropertyDescription descriptor) throws DSETypeException
validate
in interface Validation
validate
in class AbstractValidator
toValidate
- Objectdescriptor
- PropertyDescription
DSETypeException
- Thrown if the validation is unsuccessfulpublic java.lang.Object validate(java.lang.Object toValidate, PropertyDescription descriptor, Hashtable parameters) throws DSETypeException
validate
in interface Validation
validate
in class AbstractValidator
toValidate
- Objectdescriptor
- PropertyDescriptionparameters
- com.ibm.dse.base.Hashtable
DSETypeException
- - Thrown if the validation is unsuccessfulpublic java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor, Hashtable parameters) throws DSETypeException
validateForType
in class AbstractValidator
toValidate
- Objectdescriptor
- PropertyDescriptionparameters
- com.ibm.dse.base.Hashtable
DSETypeException
- - Thrown if the validation is unsuccessfulprotected java.lang.Object validateHashtable(Hashtable elements, PropertyDescription descriptor) throws DSETypeException
elements
- Hashtabledescriptor
- PropertyDescription
DSETypeException
- - Thrown if the validation is unsuccessful
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |