1 | package org.biohackathon.SPARQLBuilder.OWL;
|
---|
2 |
|
---|
3 | public class Label {
|
---|
4 |
|
---|
5 | private String label = null;
|
---|
6 | private String language = null;
|
---|
7 |
|
---|
8 |
|
---|
9 | public Label(String label, String language){
|
---|
10 | this.label = label;
|
---|
11 | this.language = language;
|
---|
12 | }
|
---|
13 |
|
---|
14 |
|
---|
15 | public String getLabel() {
|
---|
16 | return label;
|
---|
17 | }
|
---|
18 |
|
---|
19 |
|
---|
20 | public void setLabel(String label) {
|
---|
21 | this.label = label;
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | public String getLanguage() {
|
---|
26 | return language;
|
---|
27 | }
|
---|
28 |
|
---|
29 |
|
---|
30 | public void setLanguage(String language) {
|
---|
31 | this.language = language;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public String toString(){
|
---|
35 | StringBuffer sb = new StringBuffer();
|
---|
36 | sb.append("\"");
|
---|
37 | if( label != null ){
|
---|
38 | sb.append(label);
|
---|
39 | }
|
---|
40 | sb.append("\"");
|
---|
41 | if( language != null ){
|
---|
42 | sb.append("@");
|
---|
43 | sb.append(language);
|
---|
44 | }
|
---|
45 | return sb.toString();
|
---|
46 | }
|
---|
47 |
|
---|
48 | }
|
---|