Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/Annotation.java @ 4:3599b29c393f
store seems to work now :-)
author | casties |
---|---|
date | Mon, 02 Jul 2012 22:39:46 +0200 |
parents | |
children | bbf0cc5bee29 |
comparison
equal
deleted
inserted
replaced
3:47b53ae385d1 | 4:3599b29c393f |
---|---|
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 /** | |
55 * The creation date of this annotation. | |
56 */ | |
57 protected String created; | |
58 | |
59 /** | |
60 * @return the uri | |
61 */ | |
62 public String getUri() { | |
63 return uri; | |
64 } | |
65 | |
66 /** | |
67 * @param uri the uri to set | |
68 */ | |
69 public void setUri(String uri) { | |
70 this.uri = uri; | |
71 } | |
72 | |
73 /** | |
74 * @return the bodyText | |
75 */ | |
76 public String getBodyText() { | |
77 return bodyText; | |
78 } | |
79 | |
80 /** | |
81 * @param bodyText the bodyText to set | |
82 */ | |
83 public void setBodyText(String bodyText) { | |
84 this.bodyText = bodyText; | |
85 } | |
86 | |
87 /** | |
88 * @return the bodyUri | |
89 */ | |
90 public String getBodyUri() { | |
91 return bodyUri; | |
92 } | |
93 | |
94 /** | |
95 * @param bodyUri the bodyUri to set | |
96 */ | |
97 public void setBodyUri(String bodyUri) { | |
98 this.bodyUri = bodyUri; | |
99 } | |
100 | |
101 /** | |
102 * @return the targetBaseUri | |
103 */ | |
104 public String getTargetBaseUri() { | |
105 return targetBaseUri; | |
106 } | |
107 | |
108 /** | |
109 * @param targetBaseUri the targetBaseUri to set | |
110 */ | |
111 public void setTargetBaseUri(String targetBaseUri) { | |
112 this.targetBaseUri = targetBaseUri; | |
113 } | |
114 | |
115 /** | |
116 * @return the targetFragment | |
117 */ | |
118 public String getTargetFragment() { | |
119 return targetFragment; | |
120 } | |
121 | |
122 /** | |
123 * @param targetFragment the targetFragment to set | |
124 */ | |
125 public void setTargetFragment(String targetFragment) { | |
126 this.targetFragment = targetFragment; | |
127 } | |
128 | |
129 /** | |
130 * @return the targetType | |
131 */ | |
132 public FragmentTypes getFragmentType() { | |
133 return fragmentType; | |
134 } | |
135 | |
136 /** | |
137 * @param fragmentType the fragmentType to set | |
138 */ | |
139 public void setFragmentType(FragmentTypes fragmentType) { | |
140 this.fragmentType = fragmentType; | |
141 } | |
142 | |
143 /** | |
144 * @return the creatorUri | |
145 */ | |
146 public String getCreatorUri() { | |
147 return creatorUri; | |
148 } | |
149 | |
150 /** | |
151 * @param creatorUri the creatorUri to set | |
152 */ | |
153 public void setCreatorUri(String creatorUri) { | |
154 this.creatorUri = creatorUri; | |
155 } | |
156 | |
157 /** | |
158 * @return the created | |
159 */ | |
160 public String getCreated() { | |
161 return created; | |
162 } | |
163 | |
164 /** | |
165 * @param created the created to set | |
166 */ | |
167 public void setCreated(String created) { | |
168 this.created = created; | |
169 } | |
170 | |
171 | |
172 } |