'Return the string representation of this JID.
@rtype: L{unicode}'

def full(self):

    if self.user:
        if self.resource:
            return (u'%s@%s/%s' % (self.user, self.host, self.resource))
        else:
            return (u'%s@%s' % (self.user, self.host))
    elif self.resource:
        return (u'%s/%s' % (self.host, self.resource))
    else:
        return self.host
