|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.attr.Account
public class Account
Represents a Gerrit JSON Account DTO. An account that is related to an event or attribute.
| Constructor Summary | |
|---|---|
Account()
Default constructor. |
|
Account(net.sf.json.JSONObject json)
Constructor that fills with data directly. |
|
Account(String name,
String email)
For easier testing. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
void |
fromJson(net.sf.json.JSONObject json)
Takes a JSON object and fills its internal data-structure. |
String |
getEmail()
Account user's preferred email. |
String |
getName()
Account user's full name. |
String |
getNameAndEmail()
Gives the full name and email in the format "name" <email@somewhere.com>. |
int |
hashCode()
|
void |
setEmail(String email)
Account user's preferred email. |
void |
setName(String name)
Account user's full name. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Account()
public Account(net.sf.json.JSONObject json)
json - the JSON Object with data.fromJson(net.sf.json.JSONObject)
public Account(String name,
String email)
name - the name.email - the email.| Method Detail |
|---|
public void fromJson(net.sf.json.JSONObject json)
GerritJsonDTO
fromJson in interface GerritJsonDTOjson - the JSON Object.public String getEmail()
public void setEmail(String email)
email - the emailpublic String getName()
public void setName(String name)
name - the full namepublic String getNameAndEmail()
"name" <email@somewhere.com>.
If either the name or the email is null then null is returned.
If either is an empty string then an empty string is returned.
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||