'Requires:
line -- line with border definition in it
Returns:
Logic:'

def parse_border(self, line):

    border_dict = {}
    border_style_dict = {}
    border_style_list = []
    border_type = self.__border_dict.get(line[6:16])
    if (not border_type):
        sys.stderr.write(('module    is    border_parse.py\nfunction    is    parse_border\ntoken    does    not    have    a    dictionary    value\ntoken    is    "%s"' % line))
        return border_dict
    att_line = line[20:(-1)]
    atts = att_line.split('|')
    if ((len(atts) == 1) and (atts[0] == '')):
        border_dict[border_type] = 'none'
        return border_dict
    for att in atts:
        values = att.split(':')
        if (len(values) == 2):
            att = values[0]
            value = values[1]
        else:
            value = 'true'
        style_att = self.__border_style_dict.get(att)
        if style_att:
            att = ('%s-%s' % (border_type, att))
            border_style_dict[att] = value
            border_style_list.append(style_att)
        else:
            att = self.__border_dict.get(att)
            if (not att):
                sys.stderr.write(('module    is    border_parse_def.py\nfunction    is    parse_border\ntoken    does    not    have    an    att    value\nline    is    "%s"' % line))
            att = ('%s-%s' % (border_type, att))
            border_dict[att] = value
    new_border_dict = self.__determine_styles(border_type, border_style_list)
    border_dict.update(new_border_dict)
    return border_dict
