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

made uri prefixes in store configurable.
author casties
date Tue, 20 Nov 2012 18:23:52 +0100
parents f4ed2ed33e5b
children 2b1e6df5e21a
comparison
equal deleted inserted replaced
57:4efb21cf0ce0 58:f5c0e6df7e88
1 package de.mpiwg.itgroup.annotations; 1 package de.mpiwg.itgroup.annotations;
2
3 import de.mpiwg.itgroup.annotations.restlet.BaseRestlet;
2 4
3 /** 5 /**
4 * @author dwinter 6 * @author dwinter
5 * 7 *
6 */ 8 */
16 this.id=id; 18 this.id=id;
17 this.name=name; 19 this.name=name;
18 } 20 }
19 public String getUri() { 21 public String getUri() {
20 if (uri==null){ 22 if (uri==null){
21 return NS.MPIWG_TAGS_URL+getId(); // erzeuge uri aus if falls keine ID 23 return BaseRestlet.TAGS_URI_PREFIX+getId(); // erzeuge uri aus if falls keine ID
22 } 24 }
23 return uri; 25 return uri;
24 } 26 }
25 public void setUri(String uri) { 27 public void setUri(String uri) {
26 this.uri = uri; 28 this.uri = uri;