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

Last change on this file since 9:b2bfc3bc9ba8 was 9:b2bfc3bc9ba8, checked in by casties, 12 years ago

new internal actor class for creator.

File size: 3.5 KB
Line 
1/**
2 *
3 */
4package de.mpiwg.itgroup.annotations;
5
6/**
7 * @author casties
8 *
9 */
10public 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 creator of this annotation.
51     */
52    protected Actor creator;
53   
54    /**
55     * The creation date of this annotation.
56     */
57    protected String created;
58
59    protected String adminPermission;
60   
61    /**
62     * @return the uri
63     */
64    public String getUri() {
65        return uri;
66    }
67
68    /**
69     * @param uri the uri to set
70     */
71    public void setUri(String uri) {
72        this.uri = uri;
73    }
74
75    /**
76     * @return the bodyText
77     */
78    public String getBodyText() {
79        return bodyText;
80    }
81
82    /**
83     * @param bodyText the bodyText to set
84     */
85    public void setBodyText(String bodyText) {
86        this.bodyText = bodyText;
87    }
88
89    /**
90     * @return the bodyUri
91     */
92    public String getBodyUri() {
93        return bodyUri;
94    }
95
96    /**
97     * @param bodyUri the bodyUri to set
98     */
99    public void setBodyUri(String bodyUri) {
100        this.bodyUri = bodyUri;
101    }
102
103    /**
104     * @return the targetBaseUri
105     */
106    public String getTargetBaseUri() {
107        return targetBaseUri;
108    }
109
110    /**
111     * @param targetBaseUri the targetBaseUri to set
112     */
113    public void setTargetBaseUri(String targetBaseUri) {
114        this.targetBaseUri = targetBaseUri;
115    }
116
117    /**
118     * @return the targetFragment
119     */
120    public String getTargetFragment() {
121        return targetFragment;
122    }
123
124    /**
125     * @param targetFragment the targetFragment to set
126     */
127    public void setTargetFragment(String targetFragment) {
128        this.targetFragment = targetFragment;
129    }
130
131    /**
132     * @return the targetType
133     */
134    public FragmentTypes getFragmentType() {
135        return fragmentType;
136    }
137
138    /**
139     * @param fragmentType the fragmentType to set
140     */
141    public void setFragmentType(FragmentTypes fragmentType) {
142        this.fragmentType = fragmentType;
143    }
144
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    /**
160     * @return the creatorUri
161     */
162    public String getCreatorUri() {
163        if (creator != null) {
164            return creator.getUri();
165        }
166        return null;
167    }
168
169    /**
170     * @return the creatorName
171     */
172    public String getCreatorName() {
173        if (creator != null) {
174            return creator.getName();
175        }
176        return null;
177    }
178
179    /**
180     * @return the created
181     */
182    public String getCreated() {
183        return created;
184    }
185
186    /**
187     * @param created the created to set
188     */
189    public void setCreated(String created) {
190        this.created = created;
191    }
192   
193   
194}
Note: See TracBrowser for help on using the repository browser.