/jxQuery/src/test/java/jxquery/google/test/resume/Resume.java
Java | 134 lines | 102 code | 28 blank | 4 comment | 0 complexity | f3e1ec49a2c3b38ddb060f76c346a568 MD5 | raw file
- package jxquery.google.test.resume;
-
- import java.util.Date;
- import java.util.List;
-
- import jxquery.google.jxQuery;
-
- /**
- * @Author : <a href="mailto:Juanyong.zhang@gmail.com">Juanyong.zhang</a>
- * @Date : Oct 2, 2011
- */
- public class Resume {
- @jxQuery(query = "/firstName")
- private String firstName;
- @jxQuery(query = "/lastName")
- private String lastName;
- @jxQuery(query = "/gender")
- private String gender;
- @jxQuery(query = "/dob", creator = jxquery.google.creator.DateCreator.class)
- private Date dob;
- @jxQuery(query = "/email")
- private String email;
- @jxQuery(query = "/address")
- private Address address;
- @jxQuery(query = "/phoneNumber[@type='home']")
- private PhoneNumber[] homeNumber;
- @jxQuery(query = "/phoneNumber[@type='mobile']")
- private PhoneNumber[] mobile;
- @jxQuery(query = "/summary")
- private String summary;
- @jxQuery(query = "/skills")
- private String[] skills;
- @jxQuery(query = "/projects")
- private List<Project> projects;
- @jxQuery(query = "/projects[@teamMbrCnt>=20]")
- private List<Project> projectsSizeGt20;
-
- public Address getAddress() {
- return address;
- }
-
- public Date getDob() {
- return dob;
- }
-
- public String getEmail() {
- return email;
- }
-
- public String getFirstName() {
- return firstName;
- }
-
- public String getGender() {
- return gender;
- }
-
- public PhoneNumber[] getHomeNumber() {
- return homeNumber;
- }
-
- public String getLastName() {
- return lastName;
- }
-
- public PhoneNumber[] getMobile() {
- return mobile;
- }
-
- public List<Project> getProjects() {
- return projects;
- }
-
- public List<Project> getProjectsSizeGt20() {
- return projectsSizeGt20;
- }
-
- public String[] getSkills() {
- return skills;
- }
-
- public String getSummary() {
- return summary;
- }
-
- public void setAddress(Address address) {
- this.address = address;
- }
-
- public void setDob(Date dob) {
- this.dob = dob;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- public void setGender(String gender) {
- this.gender = gender;
- }
-
- public void setHomeNumber(PhoneNumber[] homeNumber) {
- this.homeNumber = homeNumber;
- }
-
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- public void setMobile(PhoneNumber[] mobile) {
- this.mobile = mobile;
- }
-
- public void setProjects(List<Project> projects) {
- this.projects = projects;
- }
-
- public void setProjectsSizeGt20(List<Project> projectsSizeGt20) {
- this.projectsSizeGt20 = projectsSizeGt20;
- }
-
- public void setSkills(String[] skills) {
- this.skills = skills;
- }
-
- public void setSummary(String summary) {
- this.summary = summary;
- }
-
- }