Guest User

Untitled

a guest
Feb 16th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. package cig.insurance.automation.features.account.activity;
  2.  
  3. import javax.xml.bind.annotation.*;
  4. import java.util.UUID;
  5.  
  6. @XmlRootElement
  7. public class CAPOperationType {
  8.  
  9. String description;
  10. String groupNumber;
  11. String publicId;
  12.  
  13. public static CAPOperationType newInstance(String description, String groupNumber) {
  14. CAPOperationType instance = new CAPOperationType();
  15. instance.setDescription(description);
  16. instance.setGroupNumber(groupNumber);
  17. instance.setPublicId(UUID.randomUUID().toString());
  18. return instance;
  19. }
  20.  
  21. public String getPublicId() {
  22. return publicId;
  23. }
  24.  
  25. @XmlAttribute(name = "public-id")
  26. public void setPublicId(String publicId) {
  27. this.publicId = publicId;
  28. }
  29.  
  30. public String getDescription() {
  31. return description;
  32. }
  33.  
  34. @XmlElement
  35. public void setDescription(String description) {
  36. this.description = description;
  37. }
  38.  
  39. public String getGroupNumber() {
  40. return groupNumber;
  41. }
  42.  
  43. @XmlElement
  44. public void setGroupNumber(String groupNumber) {
  45. this.groupNumber = groupNumber;
  46. }
  47. }
Add Comment
Please, Sign In to add comment