def __init__(self, file_name, readEntity, writeEntity, validator_class): ''' Constructor ''' Repository.__init__(self, validator_class) self.__file_name = file_name self.__validator_class = validator_class self.__read_entity = readEntity self.__write_entity = writeEntity self.__readFromFile()
def __init__(self, fileName, fromLine, toLine): self._fromLine = fromLine self._toLine = toLine Repository.__init__(self) self._fileName = fileName self.readAllFromFile()
def __init__(self, fileName): Repository.__init__(self) self._fileName = fileName self.readAllFromFile()