Home | Trees | Indices | Help |
|
---|
|
object --+ | validator.IValidator --+ | abstract_validator.AbstractValidator --+ | CompositeValidator
The CompositeValidator
allows you to chain (compose) many
validators to validate one field. The contained validators may be
required to all validate the value to validate or it may be enough that
one contained validator validates the value. This behaviour is controlled
by the modes AND
and OR
.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
MODE_AND = 0
|
|||
MODE_OR = 1
|
|||
MODE_DEFAULT = 0
|
|
|||
Inherited from |
|
Constructs a composite validator in given mode.
|
Validates the given value. The value is valid, if:
If the value is invalid, validation error is thrown. If the error message is set (non-null), it is used. If the error message has not been set, the first error occurred is thrown.
|
Checks the validity of the the given value. The value is valid, if:
|
Gets the mode of the validator.
|
Sets the mode of the validator. The valid modes are:
|
Gets the error message for the composite validator. If the error
message is
|
Adds validator to the interface.
|
Removes a validator from the composite.
|
Gets sub-validators by class. If the component contains directly or recursively (it contains another
composite containing the validator) validators compatible with given type
they are returned. This only applies to If the validator is in
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jun 10 22:40:21 2015 | http://epydoc.sourceforge.net |