@classmethod
def build_format_file(cls, data_object):
    """Builds the format file for a given file with columns attribute
        :param data_object: An object that has a list attribute with the name
                            of 'columns'
        :return: String value of the format file
        :rtype: str
        """
    if data_object.qualifier:
        format_file_row_count = len(data_object.columns) + 1
    else:
        format_file_row_count = len(data_object.columns)
    format_file = f'9.0\n{format_file_row_count}\n'
    terminators = cls._get_field_terminators(data_object)
    if data_object.qualifier:
        format_file += f"""1 SQLCHAR 0 0 "{terminators[0]}" 0 ignored_line_start_qualifier SQL_Latin1_General_CP1_CI_AS
"""
        format_file_row_index = 2
        terminators = terminators[1:]
    else:
        format_file_row_index = 1
    for column_index, terminator in enumerate(terminators, 1):
        format_file += f"""{format_file_row_index} SQLCHAR 0 0 "{terminator}" {column_index} {data_object.columns[column_index - 1]} SQL_Latin1_General_CP1_CI_AS
"""
        format_file_row_index += 1
    return format_file
