PageRenderTime 58ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/jxQuery/src/test/java/jxquery/google/test/resume/Resume.java

http://jxquery.googlecode.com/
Java | 134 lines | 102 code | 28 blank | 4 comment | 0 complexity | f3e1ec49a2c3b38ddb060f76c346a568 MD5 | raw file
  1. package jxquery.google.test.resume;
  2. import java.util.Date;
  3. import java.util.List;
  4. import jxquery.google.jxQuery;
  5. /**
  6. * @Author : <a href="mailto:Juanyong.zhang@gmail.com">Juanyong.zhang</a>
  7. * @Date : Oct 2, 2011
  8. */
  9. public class Resume {
  10. @jxQuery(query = "/firstName")
  11. private String firstName;
  12. @jxQuery(query = "/lastName")
  13. private String lastName;
  14. @jxQuery(query = "/gender")
  15. private String gender;
  16. @jxQuery(query = "/dob", creator = jxquery.google.creator.DateCreator.class)
  17. private Date dob;
  18. @jxQuery(query = "/email")
  19. private String email;
  20. @jxQuery(query = "/address")
  21. private Address address;
  22. @jxQuery(query = "/phoneNumber[@type='home']")
  23. private PhoneNumber[] homeNumber;
  24. @jxQuery(query = "/phoneNumber[@type='mobile']")
  25. private PhoneNumber[] mobile;
  26. @jxQuery(query = "/summary")
  27. private String summary;
  28. @jxQuery(query = "/skills")
  29. private String[] skills;
  30. @jxQuery(query = "/projects")
  31. private List<Project> projects;
  32. @jxQuery(query = "/projects[@teamMbrCnt>=20]")
  33. private List<Project> projectsSizeGt20;
  34. public Address getAddress() {
  35. return address;
  36. }
  37. public Date getDob() {
  38. return dob;
  39. }
  40. public String getEmail() {
  41. return email;
  42. }
  43. public String getFirstName() {
  44. return firstName;
  45. }
  46. public String getGender() {
  47. return gender;
  48. }
  49. public PhoneNumber[] getHomeNumber() {
  50. return homeNumber;
  51. }
  52. public String getLastName() {
  53. return lastName;
  54. }
  55. public PhoneNumber[] getMobile() {
  56. return mobile;
  57. }
  58. public List<Project> getProjects() {
  59. return projects;
  60. }
  61. public List<Project> getProjectsSizeGt20() {
  62. return projectsSizeGt20;
  63. }
  64. public String[] getSkills() {
  65. return skills;
  66. }
  67. public String getSummary() {
  68. return summary;
  69. }
  70. public void setAddress(Address address) {
  71. this.address = address;
  72. }
  73. public void setDob(Date dob) {
  74. this.dob = dob;
  75. }
  76. public void setEmail(String email) {
  77. this.email = email;
  78. }
  79. public void setFirstName(String firstName) {
  80. this.firstName = firstName;
  81. }
  82. public void setGender(String gender) {
  83. this.gender = gender;
  84. }
  85. public void setHomeNumber(PhoneNumber[] homeNumber) {
  86. this.homeNumber = homeNumber;
  87. }
  88. public void setLastName(String lastName) {
  89. this.lastName = lastName;
  90. }
  91. public void setMobile(PhoneNumber[] mobile) {
  92. this.mobile = mobile;
  93. }
  94. public void setProjects(List<Project> projects) {
  95. this.projects = projects;
  96. }
  97. public void setProjectsSizeGt20(List<Project> projectsSizeGt20) {
  98. this.projectsSizeGt20 = projectsSizeGt20;
  99. }
  100. public void setSkills(String[] skills) {
  101. this.skills = skills;
  102. }
  103. public void setSummary(String summary) {
  104. this.summary = summary;
  105. }
  106. }