parameters: (self, validator)
docstring: Register new flags validator to be checked.
  
      Args:
        validator: gflags_validators.Validator
      Raises:
        AttributeError: if validators work with a non-existing flag.
docstring_summary: Register new flags validator to be checked.
docstring_tokens: Register new flags validator to be checked .
function: def AddValidator(self, validator):
      """Register new flags validator to be checked.
  
      Args:
        validator: gflags_validators.Validator
      Raises:
        AttributeError: if validators work with a non-existing flag.
      """
      for flag_name in validator.GetFlagsNames():
        flag = self.FlagDict()[flag_name]
        flag.validators.append(validator)
function_tokens: def AddValidator ( self , validator ) : for flag_name in validator . GetFlagsNames ( ) : flag = self . FlagDict ( ) [ flag_name ] flag . validators . append ( validator )