source: AnnotationManagerN4J/src/main/java/de/mpiwg/itgroup/annotations/Tag.java @ 58:f5c0e6df7e88

Last change on this file since 58:f5c0e6df7e88 was 58:f5c0e6df7e88, checked in by casties, 11 years ago

made uri prefixes in store configurable.

File size: 836 bytes
Line 
1package de.mpiwg.itgroup.annotations;
2
3import de.mpiwg.itgroup.annotations.restlet.BaseRestlet;
4
5/**
6 * @author dwinter
7 *
8 */
9public class Tag {
10
11            public String uri;
12            public String name;
13            public String id;
14           
15           
16                public Tag(String id, String uri, String name) {
17                        this.uri=uri;
18                        this.id=id;
19                        this.name=name;
20                }
21                public String getUri() {
22                        if (uri==null){
23                                return BaseRestlet.TAGS_URI_PREFIX+getId(); // erzeuge uri aus if falls keine ID
24                        }
25                        return uri;
26                }
27                public void setUri(String uri) {
28                        this.uri = uri;
29                }
30                public String getName() {
31                        return name;
32                }
33                public void setName(String name) {
34                        this.name = name;
35                }
36                public String getId() {
37                        if (id==null){
38                                return getName(); //take name if id not defined
39                        }
40                        return id;
41                }
42                public void setId(String id) {
43                        this.id = id;
44                }
45
46}
Note: See TracBrowser for help on using the repository browser.