Mercurial > hg > AnnotationManagerN4J
comparison 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 |
comparison
equal
deleted
inserted
replaced
8:c3cc6a41dd1c | 9:b2bfc3bc9ba8 |
---|---|
45 * The type of the annotation target fragment. | 45 * The type of the annotation target fragment. |
46 */ | 46 */ |
47 protected FragmentTypes fragmentType; | 47 protected FragmentTypes fragmentType; |
48 | 48 |
49 /** | 49 /** |
50 * The URI of the creator of this annotation. | 50 * The creator of this annotation. |
51 */ | 51 */ |
52 protected String creatorUri; | 52 protected Actor creator; |
53 | |
54 /** | |
55 * The full name of the creator of this annotation. | |
56 */ | |
57 protected String creatorName; | |
58 | 53 |
59 /** | 54 /** |
60 * The creation date of this annotation. | 55 * The creation date of this annotation. |
61 */ | 56 */ |
62 protected String created; | 57 protected String created; |
146 public void setFragmentType(FragmentTypes fragmentType) { | 141 public void setFragmentType(FragmentTypes fragmentType) { |
147 this.fragmentType = fragmentType; | 142 this.fragmentType = fragmentType; |
148 } | 143 } |
149 | 144 |
150 /** | 145 /** |
146 * @return the creator | |
147 */ | |
148 public Actor getCreator() { | |
149 return creator; | |
150 } | |
151 | |
152 /** | |
153 * @param creator the creator to set | |
154 */ | |
155 public void setCreator(Actor creator) { | |
156 this.creator = creator; | |
157 } | |
158 | |
159 /** | |
151 * @return the creatorUri | 160 * @return the creatorUri |
152 */ | 161 */ |
153 public String getCreatorUri() { | 162 public String getCreatorUri() { |
154 return creatorUri; | 163 if (creator != null) { |
155 } | 164 return creator.getUri(); |
156 | 165 } |
157 /** | 166 return null; |
158 * @param creatorUri the creatorUri to set | |
159 */ | |
160 public void setCreatorUri(String creatorUri) { | |
161 this.creatorUri = creatorUri; | |
162 } | 167 } |
163 | 168 |
164 /** | 169 /** |
165 * @return the creatorName | 170 * @return the creatorName |
166 */ | 171 */ |
167 public String getCreatorName() { | 172 public String getCreatorName() { |
168 return creatorName; | 173 if (creator != null) { |
169 } | 174 return creator.getName(); |
170 | 175 } |
171 /** | 176 return null; |
172 * @param creatorName the creatorName to set | |
173 */ | |
174 public void setCreatorName(String creatorName) { | |
175 this.creatorName = creatorName; | |
176 } | 177 } |
177 | 178 |
178 /** | 179 /** |
179 * @return the created | 180 * @return the created |
180 */ | 181 */ |