source: AnnotationManagerN4J/src/main/java/de/mpiwg/itgroup/annotations/Tag.java @ 28:f4ed2ed33e5b

Last change on this file since 28:f4ed2ed33e5b was 28:f4ed2ed33e5b, checked in by dwinter, 12 years ago

Restinterface zur Anzeige von Tags hinzugefuegt-

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