/src/test/java/com/alibaba/json/bvtVO/alipay/PlatformDepartmentVO.java

https://github.com/alibaba/fastjson · Java · 257 lines · 155 code · 24 blank · 78 comment · 8 complexity · 910ae887a025a51287e3c8b2f4a43c9f MD5 · raw file

  1. package com.alibaba.json.bvtVO.alipay;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. public class PlatformDepartmentVO {
  6. @JSONField(ordinal=1)
  7. private String id ;
  8. @JSONField(ordinal=2)
  9. private String label ;
  10. @JSONField(ordinal=3)
  11. private String value;
  12. @JSONField(ordinal=4)
  13. private String parentId;
  14. @JSONField(ordinal=5)
  15. private String parentLabel;
  16. @JSONField(ordinal=6)
  17. private String companyId;
  18. @JSONField(ordinal=7)
  19. private String departCode;
  20. @JSONField(ordinal=8)
  21. private String memo;
  22. @JSONField(ordinal=9)
  23. private String departOrgCode;
  24. @JSONField(ordinal=10)
  25. private String contact;
  26. @JSONField(ordinal=11)
  27. private String mobile;
  28. @JSONField(ordinal=12)
  29. private String departType;
  30. @JSONField(serialize=false)
  31. private String ipId;
  32. @JSONField(serialize=false)
  33. private String ipRoleId;
  34. @JSONField(serialize=false)
  35. private PlatformDepartmentVO parent;
  36. @JSONField(ordinal=6,name="ChildNodes")
  37. private List<PlatformDepartmentVO> childNodes =new ArrayList<PlatformDepartmentVO>();
  38. public String getId() {
  39. return id;
  40. }
  41. public void setId(String id) {
  42. this.id = id;
  43. }
  44. public String getLabel() {
  45. return label;
  46. }
  47. public void setLabel(String label) {
  48. this.label = label;
  49. }
  50. public String getValue() {
  51. return value;
  52. }
  53. public void setValue(String value) {
  54. this.value = value;
  55. }
  56. public String getParentId() {
  57. return parentId;
  58. }
  59. public void setParentId(String parentId) {
  60. this.parentId = parentId;
  61. }
  62. public String getCompanyId() {
  63. return companyId;
  64. }
  65. public void setCompanyId(String companyId) {
  66. this.companyId = companyId;
  67. }
  68. public String getDepartCode() {
  69. return departCode;
  70. }
  71. public void setDepartCode(String departCode) {
  72. this.departCode = departCode;
  73. }
  74. public String getMemo() {
  75. return memo;
  76. }
  77. public void setMemo(String memo) {
  78. this.memo = memo;
  79. }
  80. public PlatformDepartmentVO getParent() {
  81. return parent;
  82. }
  83. public void setParent(PlatformDepartmentVO parent) {
  84. this.parent = parent;
  85. }
  86. public List<PlatformDepartmentVO> getChildNodes() {
  87. return childNodes;
  88. }
  89. public void setChildNodes(List<PlatformDepartmentVO> childNodes) {
  90. this.childNodes = childNodes;
  91. }
  92. /**
  93. * Getter method for property <tt>departType</tt>.
  94. *
  95. * @return property value of departType
  96. */
  97. public String getDepartType() {
  98. return departType;
  99. }
  100. /**
  101. * Setter method for property <tt>departType</tt>.
  102. *
  103. * @param departType value to be assigned to property departType
  104. */
  105. public void setDepartType(String departType) {
  106. this.departType = departType;
  107. }
  108. /**
  109. * Getter method for property <tt>parentLabel</tt>.
  110. *
  111. * @return property value of parentLabel
  112. */
  113. public String getParentLabel() {
  114. return parentLabel;
  115. }
  116. /**
  117. * Setter method for property <tt>parentLabel</tt>.
  118. *
  119. * @param parentLabel value to be assigned to property parentLabel
  120. */
  121. public void setParentLabel(String parentLabel) {
  122. this.parentLabel = parentLabel;
  123. }
  124. /**
  125. * Getter method for property <tt>departOrgCode</tt>.
  126. *
  127. * @return property value of departOrgCode
  128. */
  129. public String getDepartOrgCode() {
  130. return departOrgCode;
  131. }
  132. /**
  133. * Setter method for property <tt>departOrgCode</tt>.
  134. *
  135. * @param departOrgCode value to be assigned to property departOrgCode
  136. */
  137. public void setDepartOrgCode(String departOrgCode) {
  138. this.departOrgCode = departOrgCode;
  139. }
  140. /**
  141. * Getter method for property <tt>contact</tt>.
  142. *
  143. * @return property value of contact
  144. */
  145. public String getContact() {
  146. return contact;
  147. }
  148. /**
  149. * Setter method for property <tt>contact</tt>.
  150. *
  151. * @param contact value to be assigned to property contact
  152. */
  153. public void setContact(String contact) {
  154. this.contact = contact;
  155. }
  156. /**
  157. * Getter method for property <tt>mobile</tt>.
  158. *
  159. * @return property value of mobile
  160. */
  161. public String getMobile() {
  162. return mobile;
  163. }
  164. /**
  165. * Setter method for property <tt>mobile</tt>.
  166. *
  167. * @param mobile value to be assigned to property mobile
  168. */
  169. public void setMobile(String mobile) {
  170. this.mobile = mobile;
  171. }
  172. /**
  173. * Getter method for property <tt>ipRoleId</tt>.
  174. *
  175. * @return property value of ipRoleId
  176. */
  177. public String getIpRoleId() {
  178. return ipRoleId;
  179. }
  180. /**
  181. * Setter method for property <tt>ipRoleId</tt>.
  182. *
  183. * @param ipRoleId value to be assigned to property ipRoleId
  184. */
  185. public void setIpRoleId(String ipRoleId) {
  186. this.ipRoleId = ipRoleId;
  187. }
  188. /**
  189. * Getter method for property <tt>ipId</tt>.
  190. *
  191. * @return property value of ipId
  192. */
  193. public String getIpId() {
  194. return ipId;
  195. }
  196. /**
  197. * Setter method for property <tt>ipId</tt>.
  198. *
  199. * @param ipId value to be assigned to property ipId
  200. */
  201. public void setIpId(String ipId) {
  202. this.ipId = ipId;
  203. }
  204. public PlatformDepartmentVO() {
  205. }
  206. // public PlatformDepartmentVO(String id, String label, String value, String parentId,
  207. // String companyId) {
  208. // this.id = id;
  209. // this.label = label;
  210. // this.value = value;
  211. // this.parentId = parentId;
  212. // this.companyId = companyId;
  213. // }
  214. public boolean equals(Object obj) {
  215. if (this == obj) {
  216. return true;
  217. }
  218. if (obj == null) {
  219. return false;
  220. }
  221. if (getClass() != obj.getClass()) {
  222. return false;
  223. }
  224. if(null==this.getId()){
  225. return false;
  226. }
  227. final PlatformDepartmentVO other = (PlatformDepartmentVO) obj;
  228. if(!this.getId().equals(other.getId())) {
  229. return false;
  230. }
  231. return true;
  232. }
  233. }