4
|
1 /**
|
|
2 *
|
|
3 */
|
|
4 package de.mpiwg.itgroup.annotations;
|
|
5
|
|
6 /**
|
|
7 * @author casties
|
|
8 *
|
|
9 */
|
|
10 public class Annotation {
|
|
11 /**
|
|
12 * The URI of this annotation.
|
|
13 */
|
|
14 protected String uri;
|
|
15
|
|
16 /**
|
|
17 * The annotation (body) text.
|
|
18 */
|
|
19 protected String bodyText;
|
|
20
|
|
21 /**
|
|
22 * The URI of the annotation text
|
|
23 */
|
|
24 protected String bodyUri;
|
|
25
|
|
26 /**
|
|
27 * The base URI of the annotation target.
|
|
28 */
|
|
29 protected String targetBaseUri;
|
|
30
|
|
31 /**
|
|
32 * The fragment part of the annotation target.
|
|
33 */
|
|
34 protected String targetFragment;
|
|
35
|
|
36 /**
|
|
37 * The types of annotation targets.
|
|
38 *
|
|
39 */
|
|
40 public static enum FragmentTypes {
|
|
41 XPOINTER, AREA
|
|
42 };
|
|
43
|
|
44 /**
|
|
45 * The type of the annotation target fragment.
|
|
46 */
|
|
47 protected FragmentTypes fragmentType;
|
|
48
|
|
49 /**
|
|
50 * The URI of the creator of this annotation.
|
|
51 */
|
|
52 protected String creatorUri;
|
|
53
|
|
54 /**
|
5
|
55 * The full name of the creator of this annotation.
|
|
56 */
|
|
57 protected String creatorName;
|
|
58
|
|
59 /**
|
4
|
60 * The creation date of this annotation.
|
|
61 */
|
|
62 protected String created;
|
|
63
|
|
64 /**
|
|
65 * @return the uri
|
|
66 */
|
|
67 public String getUri() {
|
|
68 return uri;
|
|
69 }
|
|
70
|
|
71 /**
|
|
72 * @param uri the uri to set
|
|
73 */
|
|
74 public void setUri(String uri) {
|
|
75 this.uri = uri;
|
|
76 }
|
|
77
|
|
78 /**
|
|
79 * @return the bodyText
|
|
80 */
|
|
81 public String getBodyText() {
|
|
82 return bodyText;
|
|
83 }
|
|
84
|
|
85 /**
|
|
86 * @param bodyText the bodyText to set
|
|
87 */
|
|
88 public void setBodyText(String bodyText) {
|
|
89 this.bodyText = bodyText;
|
|
90 }
|
|
91
|
|
92 /**
|
|
93 * @return the bodyUri
|
|
94 */
|
|
95 public String getBodyUri() {
|
|
96 return bodyUri;
|
|
97 }
|
|
98
|
|
99 /**
|
|
100 * @param bodyUri the bodyUri to set
|
|
101 */
|
|
102 public void setBodyUri(String bodyUri) {
|
|
103 this.bodyUri = bodyUri;
|
|
104 }
|
|
105
|
|
106 /**
|
|
107 * @return the targetBaseUri
|
|
108 */
|
|
109 public String getTargetBaseUri() {
|
|
110 return targetBaseUri;
|
|
111 }
|
|
112
|
|
113 /**
|
|
114 * @param targetBaseUri the targetBaseUri to set
|
|
115 */
|
|
116 public void setTargetBaseUri(String targetBaseUri) {
|
|
117 this.targetBaseUri = targetBaseUri;
|
|
118 }
|
|
119
|
|
120 /**
|
|
121 * @return the targetFragment
|
|
122 */
|
|
123 public String getTargetFragment() {
|
|
124 return targetFragment;
|
|
125 }
|
|
126
|
|
127 /**
|
|
128 * @param targetFragment the targetFragment to set
|
|
129 */
|
|
130 public void setTargetFragment(String targetFragment) {
|
|
131 this.targetFragment = targetFragment;
|
|
132 }
|
|
133
|
|
134 /**
|
|
135 * @return the targetType
|
|
136 */
|
|
137 public FragmentTypes getFragmentType() {
|
|
138 return fragmentType;
|
|
139 }
|
|
140
|
|
141 /**
|
|
142 * @param fragmentType the fragmentType to set
|
|
143 */
|
|
144 public void setFragmentType(FragmentTypes fragmentType) {
|
|
145 this.fragmentType = fragmentType;
|
|
146 }
|
|
147
|
|
148 /**
|
|
149 * @return the creatorUri
|
|
150 */
|
|
151 public String getCreatorUri() {
|
|
152 return creatorUri;
|
|
153 }
|
|
154
|
|
155 /**
|
|
156 * @param creatorUri the creatorUri to set
|
|
157 */
|
|
158 public void setCreatorUri(String creatorUri) {
|
|
159 this.creatorUri = creatorUri;
|
|
160 }
|
|
161
|
|
162 /**
|
5
|
163 * @return the creatorName
|
|
164 */
|
|
165 public String getCreatorName() {
|
|
166 return creatorName;
|
|
167 }
|
|
168
|
|
169 /**
|
|
170 * @param creatorName the creatorName to set
|
|
171 */
|
|
172 public void setCreatorName(String creatorName) {
|
|
173 this.creatorName = creatorName;
|
|
174 }
|
|
175
|
|
176 /**
|
4
|
177 * @return the created
|
|
178 */
|
|
179 public String getCreated() {
|
|
180 return created;
|
|
181 }
|
|
182
|
|
183 /**
|
|
184 * @param created the created to set
|
|
185 */
|
|
186 public void setCreated(String created) {
|
|
187 this.created = created;
|
|
188 }
|
|
189
|
|
190
|
|
191 }
|