'Get formatted string by calling `to_string` on children items.'

def to_string(self, level=0, indent=4, eol='\n', pretty=True, max_chars=80):

    if (not len(self)):
        return '{name}()'.format(name=self._get_class_name())
    string = '{name}([{eol}{indent}'.format(name=self._get_class_name(), eol=eol, indent=(('    ' * indent) * (level + 1)))
    for (index, entry) in enumerate(self):
        string += entry.to_string(level=(level + 1), indent=indent, eol=eol, pretty=pretty, max_chars=max_chars)
        if (index < (len(self) - 1)):
            string += ',{eol}{indent}'.format(eol=eol, indent=(('    ' * indent) * (level + 1)))
    string += '{eol}{indent}])'.format(eol=eol, indent=(('    ' * indent) * level))
    return string
