0
|
1 package de.mpiwg.indexmeta.bo;
|
|
2
|
|
3 import javax.persistence.Entity;
|
|
4 import javax.persistence.GeneratedValue;
|
|
5 import javax.persistence.Id;
|
|
6
|
|
7 import de.mpiwg.indexmeta.utils.QuadKey;
|
|
8
|
|
9 @Entity
|
|
10 public class Contextualization {
|
|
11
|
|
12 @Id
|
|
13 @GeneratedValue
|
|
14 private Long id;
|
|
15
|
|
16 private String indexMetaId;
|
|
17 private String elementId;
|
|
18 private String xpath;
|
|
19 private String remoteId;
|
|
20 private String state;
|
|
21 private String comment;
|
|
22 private String content;
|
|
23
|
|
24 public static String PUBLISHER = "publisher";
|
|
25 public static String CITY = "city";
|
|
26 public static String HOLDING_LIBRARY = "holding-library";
|
|
27 public static String AUTHOR = "author";
|
|
28
|
|
29 //"publisher","city","holding-library", "author"
|
|
30 private String type;
|
|
31
|
|
32 public String getIndexMetaId() {
|
|
33 return indexMetaId;
|
|
34 }
|
|
35 public void setIndexMetaId(String indexMetaId) {
|
|
36 this.indexMetaId = indexMetaId;
|
|
37 }
|
|
38 public String getElementId() {
|
|
39 return elementId;
|
|
40 }
|
|
41 public void setElementId(String elementId) {
|
|
42 this.elementId = elementId;
|
|
43 }
|
|
44 public String getXpath() {
|
|
45 return xpath;
|
|
46 }
|
|
47 public void setXpath(String xpath) {
|
|
48 this.xpath = xpath;
|
|
49 }
|
|
50 public String getRemoteId() {
|
|
51 return remoteId;
|
|
52 }
|
|
53 public void setRemoteId(String remoteId) {
|
|
54 this.remoteId = remoteId;
|
|
55 }
|
|
56 public String getState() {
|
|
57 return state;
|
|
58 }
|
|
59 public void setState(String state) {
|
|
60 this.state = state;
|
|
61 }
|
|
62 public String getComment() {
|
|
63 return comment;
|
|
64 }
|
|
65 public void setComment(String comment) {
|
|
66 this.comment = comment;
|
|
67 }
|
|
68 public String getType() {
|
|
69 return type;
|
|
70 }
|
|
71 public void setType(String type) {
|
|
72 this.type = type;
|
|
73 }
|
|
74 public String getContent() {
|
|
75 return content;
|
|
76 }
|
|
77 public void setContent(String content) {
|
|
78 this.content = content;
|
|
79 }
|
|
80 public Long getId() {
|
|
81 return id;
|
|
82 }
|
|
83 public void setId(Long id) {
|
|
84 this.id = id;
|
|
85 }
|
|
86
|
|
87 public QuadKey<String, String, String> getKey(){
|
5
|
88 return new QuadKey<String, String, String>(indexMetaId, type, remoteId, id);
|
0
|
89 }
|
|
90
|
|
91 @Override
|
|
92 public String toString(){
|
|
93 StringBuilder sb = new StringBuilder("Ctx [");
|
|
94
|
|
95 sb.append("indexMetaId=" + indexMetaId);
|
|
96 sb.append(", type=" + type);
|
|
97 sb.append(", elementId=" + elementId);
|
|
98 sb.append(", remoteId=" + remoteId);
|
|
99 sb.append(", content=" + content);
|
|
100
|
|
101 sb.append("]");
|
|
102 return sb.toString();
|
|
103 }
|
|
104 }
|