Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/Annotation.java @ 40:03e0f7574224
saving and loading resource targets should work now (no searching yet)
| author | casties |
|---|---|
| date | Wed, 26 Sep 2012 14:56:42 +0200 |
| parents | 715aa11d138b |
| children | 0e00bf8e27fb |
comparison
equal
deleted
inserted
replaced
| 36:0fdb05f35139 | 40:03e0f7574224 |
|---|---|
| 36 * The fragment part of the annotation target. | 36 * The fragment part of the annotation target. |
| 37 */ | 37 */ |
| 38 protected String targetFragment; | 38 protected String targetFragment; |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * The types of annotation targets. | 41 * The types of annotation target fragments. |
| 42 * | 42 * |
| 43 */ | 43 */ |
| 44 public static enum FragmentTypes { | 44 public static enum FragmentTypes { |
| 45 XPOINTER, AREA | 45 XPOINTER, AREA |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * The type of the annotation target fragment. | 49 * The type of the annotation target fragment. |
| 50 */ | 50 */ |
| 51 protected FragmentTypes fragmentType; | 51 protected FragmentTypes fragmentType; |
| 52 | |
| 53 | |
| 54 /** | |
| 55 * The uri of the resource that is annotated e.g. a book. | |
| 56 * The target is part of this resource e.g. a page of a book. | |
| 57 */ | |
| 58 protected String resourceUri; | |
| 52 | 59 |
| 53 /** | 60 /** |
| 54 * The creator of this annotation. | 61 * The creator of this annotation. |
| 55 */ | 62 */ |
| 56 protected Actor creator; | 63 protected Actor creator; |
| 221 public void setFragmentType(FragmentTypes fragmentType) { | 228 public void setFragmentType(FragmentTypes fragmentType) { |
| 222 this.fragmentType = fragmentType; | 229 this.fragmentType = fragmentType; |
| 223 } | 230 } |
| 224 | 231 |
| 225 /** | 232 /** |
| 233 * @return the resourceUri | |
| 234 */ | |
| 235 public String getResourceUri() { | |
| 236 return resourceUri; | |
| 237 } | |
| 238 | |
| 239 /** | |
| 240 * @param resourceUri the resourceUri to set | |
| 241 */ | |
| 242 public void setResourceUri(String resourceUri) { | |
| 243 this.resourceUri = resourceUri; | |
| 244 } | |
| 245 | |
| 246 /** | |
| 226 * @return the creator | 247 * @return the creator |
| 227 */ | 248 */ |
| 228 public Actor getCreator() { | 249 public Actor getCreator() { |
| 229 return creator; | 250 return creator; |
| 230 } | 251 } |
