PageRenderTime 238ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/src/eu/jlinkeditrdfconverter/entity/GraphEntity.java

https://gitlab.com/jlinkedit/jlinkservices
Java | 95 lines | 69 code | 26 blank | 0 comment | 0 complexity | 279ef144180246ce0fa2569005f91516 MD5 | raw file
  1. package eu.jlinkeditrdfconverter.entity;
  2. import java.io.Serializable;
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. import javax.xml.bind.annotation.XmlEnum;
  6. import javax.xml.bind.annotation.XmlRootElement;
  7. import org.bson.types.ObjectId;
  8. import org.springframework.data.mongodb.core.mapping.DBRef;
  9. import org.springframework.data.mongodb.core.mapping.Document;
  10. import com.google.gson.annotations.Expose;
  11. @Document
  12. @XmlRootElement
  13. public class GraphEntity implements Serializable{
  14. private static final long serialVersionUID = 4682610087540708510L;
  15. private List<NodeEntity> nodes = new ArrayList<NodeEntity>();
  16. private List<LinkEntity> links = new ArrayList<LinkEntity>();
  17. private ObjectId _id;
  18. private String token;
  19. private String name;
  20. private String detail;
  21. private Boolean draft;
  22. public List<NodeEntity> getNodes() {
  23. return nodes;
  24. }
  25. public void setNodes(List<NodeEntity> nodes) {
  26. this.nodes = nodes;
  27. }
  28. public List<LinkEntity> getLinks() {
  29. return links;
  30. }
  31. public void setLinks(List<LinkEntity> links) {
  32. this.links = links;
  33. }
  34. public ObjectId get_id() {
  35. return _id;
  36. }
  37. public void set_id(ObjectId _id) {
  38. this._id = _id;
  39. }
  40. public String getToken() {
  41. return token;
  42. }
  43. public void setToken(String token) {
  44. this.token = token;
  45. }
  46. public String getName() {
  47. return name;
  48. }
  49. public void setName(String name) {
  50. this.name = name;
  51. }
  52. public String getDetail() {
  53. return detail;
  54. }
  55. public void setDetail(String detail) {
  56. this.detail = detail;
  57. }
  58. public Boolean getDraft() {
  59. return draft;
  60. }
  61. public void setDraft(Boolean draft) {
  62. this.draft = draft;
  63. }
  64. @Override
  65. public String toString() {
  66. return "GraphEntity [nodes=" + nodes + ", links=" + links + ", _id=" + _id + ", token=" + token + ", name=" + name + ", detail=" + detail + ", draft="
  67. + draft + "]";
  68. }
  69. }