def METHOD_NAME(self, value):
    """
    Set the attributes value
    @param value: The new value (may be None)
    @type value: basestring
    @return: self
    @rtype: L{Attribute}
    """
    if isinstance(value, Text):
        self.value = value
    else:
        self.value = Text(value)
    return self