def METHOD_NAME(self, parent=None):
    """
    Clone this object.
    @param parent: The parent for the clone.
    @type parent: L{element.Element}
    @return: A copy of this object assigned to the new parent.
    @rtype: L{Attribute}
    """
    a = Attribute(self.qname(), self.value)
    a.parent = parent
    return a