|
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.ICollValidator
This class is a Validator for compound business objects that are IndexedCollections. It checks if the inner elements of the indexed collection are valid and also if the indexed collection size is between the minSize and the maxSize. Both of these properties are defined within the keyValuePairs.
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 | |
---|---|
ICollValidator()
Creates an ICollValidator object. |
|
ICollValidator(java.util.Hashtable keyValuePairs)
Creates an ICollValidator object. |
Method Summary | |
---|---|
java.lang.Object |
validate(java.lang.Object toValidate,
PropertyDescription descriptor)
Validates the passed object and, if successful, returns the object. |
java.lang.Object |
validate(java.lang.Object toValidate,
PropertyDescription descriptor,
Hashtable parameters)
Validates the passed object and, if successful, returns the object. |
java.lang.Object |
validateForType(java.lang.Object toValidate,
PropertyDescription descriptor,
Hashtable parameters)
Validates the passed object (which must be an indexed collection) and, if successful, returns the object. |
protected java.lang.Object |
validateICollSize(java.lang.Object toValidate,
PropertyDescription descriptor)
Checks that the indexed collection size lays between the minimum and the maximum values specified as parameters of the owner descriptor or as parameters of the validator. |
protected java.lang.Object |
validateICollSize(java.lang.Object toValidate,
PropertyDescription descriptor,
Hashtable parameters)
Checks that the indexed collection size lays between the minimum and the maximum values specified as parameters of the Hashtable, as parameters of the owner descriptor, or as parameters of the validator. |
protected java.lang.Object |
validateInnerElements(java.util.Vector elements,
PropertyDescription descriptor)
Validates the inner elements of the indexed collection passed within a vector. |
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 ICollValidator()
public ICollValidator(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 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 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 validateICollSize(java.lang.Object toValidate, PropertyDescription descriptor) throws DSETypeException
toValidate
- java.lang.Object - The indexed collection to validatedescriptor
- com.ibm.dse.base.types.PropertyDescription
DSETypeException
protected java.lang.Object validateICollSize(java.lang.Object toValidate, PropertyDescription descriptor, Hashtable parameters) throws DSETypeException
toValidate
- java.lang.Object - The indexed collection to validatedescriptor
- com.ibm.dse.base.types.PropertyDescriptionparameters
- com.ibm.dse.base.Hashtable
DSETypeException
protected java.lang.Object validateInnerElements(java.util.Vector elements, PropertyDescription descriptor) throws DSETypeException
elements
- - The vector of inner elementsdescriptor
- - The property descriptor that owns this validator
DSETypeException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |