]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java
Replace test result id by UUID
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / structure / SimpleSElement.java
1 package org.argeo.slc.core.structure;
2
3 import java.util.Map;
4 import java.util.TreeMap;
5
6 /**
7 * Basic implementation of <code>StructureElement</code>.
8 *
9 * @see TreeSPath
10 */
11 public class SimpleSElement implements StructureElement {
12 /** For ORM */
13 private Long tid;
14 private String label;
15 private Map<String, String> tags = new TreeMap<String, String>();
16
17 /** For ORM */
18 public SimpleSElement() {
19 }
20
21 /** Constructor */
22 public SimpleSElement(String label) {
23 this.label = label;
24 }
25
26 /** Constructor */
27 public SimpleSElement(String label, String defaultLabel) {
28 this(label != null ? label : defaultLabel);
29 }
30
31 public String getLabel() {
32 return label;
33 }
34
35 /** Sets the label. */
36 public void setLabel(String label) {
37 this.label = label;
38 }
39
40 public Long getTid() {
41 return tid;
42 }
43
44 void setTid(Long tid) {
45 this.tid = tid;
46 }
47
48 public Map<String, String> getTags() {
49 return tags;
50 }
51
52 public void setTags(Map<String, String> tags) {
53 this.tags = tags;
54 }
55
56 }