/** * Returns a String that could be used by any user interacting modules for referring to this * contact. An alias is not necessarily unique but is often more human readable than an address * (or id). * * @return a String that can be used for referring to this contact when interacting with the user. */ public String getDisplayName() { if (isResolved) { String name = rosterEntry.getName(); if (name == null) name = getAddress(); return name; } else return tempId; }
/** * Returns the Jabber Userid of this contact * * @return the Jabber Userid of this contact */ public String getAddress() { if (isResolved) return rosterEntry.getUser(); else return tempId; }