]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java
Add binary support in independent db test case
[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
4 /**
5 * Basic implementation of <code>StructureElement</code>.
6 *
7 * @see TreeSPath
8 */
9 public class SimpleSElement implements StructureElement {
10 /** For ORM */
11 private Long tid;
12 private String label;
13
14 /** For ORM */
15 public SimpleSElement() {
16 }
17
18 /** Constructor */
19 public SimpleSElement(String label) {
20 this.label = label;
21 }
22
23 /** Constructor */
24 public SimpleSElement(String label, String defaultLabel) {
25 this(label != null ? label : defaultLabel);
26 }
27
28 public String getLabel() {
29 return label;
30 }
31
32 /** Sets the label. */
33 public void setLabel(String label) {
34 this.label = label;
35 }
36
37 public Long getTid() {
38 return tid;
39 }
40
41 void setTid(Long tid) {
42 this.tid = tid;
43 }
44
45 }