'Retrieve the given JID component.
:param name: one of: user, server, domain, resource,
full, or bare.'

def __getattr__(self, name):

    if (name == u'resource'):
        return (self._jid[2] or u'')
    elif (name in (u'user', u'username', u'local', u'node')):
        return (self._jid[0] or u'')
    elif (name in (u'server', u'domain', u'host')):
        return (self._jid[1] or u'')
    elif (name in (u'full', u'jid')):
        return _format_jid(*self._jid)
    elif (name == u'bare'):
        return _format_jid(self._jid[0], self._jid[1])
    elif (name == u'_jid'):
        return getattr(super(JID, self), u'_jid')
    else:
        return None
