annotate src/main/java/de/mpiwg/itgroup/annotations/Annotation.java @ 9:b2bfc3bc9ba8

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