Home | History | Annotate | Download | only in python_gflags

Lines Matching refs:Validator

34 A validator represents an invariant, enforced over a one or more flags.
42 """Thrown If validator constraint is not satisfied."""
45 class Validator(object):
52 # Used to assign each validator an unique insertion_index
66 Validator.validators_count += 1
68 self.insertion_index = Validator.validators_count
73 flags library calls this method to verify Validator's constraint.
84 """Return the names of the flags checked by this validator.
100 Return type depends on the specific validator.
105 class SimpleValidator(Validator):
106 """Validator behind RegisterValidator() method.
116 checker: function to verify the validator.
118 output - Boolean. Must return True if validator constraint is satisfied.
121 message: string, error message to be shown to the user if validator's
144 class DictionaryValidator(Validator):
145 """Validator behind RegisterDictionaryValidator method.
156 checker: function to verify the validator.
159 output - Boolean. Must return True if validator constraint is satisfied.
162 message: string, error message to be shown to the user if validator's