| 1 |
// generated by kwalify from address_book.schema.yaml |
| 2 |
|
| 3 |
import java.util.*; |
| 4 |
|
| 5 |
/** |
| 6 |
* person class |
| 7 |
*/ |
| 8 |
public class Person { |
| 9 |
|
| 10 |
private String _name; |
| 11 |
private String _desc; |
| 12 |
private String _group; |
| 13 |
private String _email; |
| 14 |
private String _phone; |
| 15 |
private Date _birth; |
| 16 |
private String _blood; |
| 17 |
|
| 18 |
public Person() {} |
| 19 |
|
| 20 |
public Person(Map map) { |
| 21 |
_name = (String)map.get("name"); |
| 22 |
_desc = (String)map.get("desc"); |
| 23 |
_group = (String)map.get("group"); |
| 24 |
_email = (String)map.get("email"); |
| 25 |
_phone = (String)map.get("phone"); |
| 26 |
_birth = (Date)map.get("birth"); |
| 27 |
_blood = (String)map.get("blood"); |
| 28 |
} |
| 29 |
|
| 30 |
public String getName() { return _name; } |
| 31 |
public void setName(String name_) { _name = name_; } |
| 32 |
public String getDesc() { return _desc; } |
| 33 |
public void setDesc(String desc_) { _desc = desc_; } |
| 34 |
public String getGroup() { return _group; } |
| 35 |
public void setGroup(String group_) { _group = group_; } |
| 36 |
public String getEmail() { return _email; } |
| 37 |
public void setEmail(String email_) { _email = email_; } |
| 38 |
public String getPhone() { return _phone; } |
| 39 |
public void setPhone(String phone_) { _phone = phone_; } |
| 40 |
public Date getBirth() { return _birth; } |
| 41 |
public void setBirth(Date birth_) { _birth = birth_; } |
| 42 |
public String getBlood() { return _blood; } |
| 43 |
public void setBlood(String blood_) { _blood = blood_; } |
| 44 |
} |