]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java
Change default separator
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / structure / SimpleSElement.java
1 package org.argeo.slc.core.structure;
2
3 import org.argeo.slc.core.structure.tree.TreeSPath;
4
5 /**
6 * Basic implementation of <code>StructureElement</code>.
7 *
8 * @see TreeSPath
9 */
10 public class SimpleSElement implements StructureElement {
11 /** For ORM */
12 private Long tid;
13 private String description;
14
15 /** For ORM */
16 public SimpleSElement() {
17 }
18
19 /** Constructor */
20 public SimpleSElement(String description) {
21 this.description = description;
22 }
23
24 /** Constructor */
25 public SimpleSElement(String description, String defaultDescription) {
26 this(description != null ? description : defaultDescription);
27 }
28
29 public String getDescription() {
30 return description;
31 }
32
33 /** Sets the description. */
34 public void setDescription(String description) {
35 this.description = description;
36 }
37
38 Long getTid() {
39 return tid;
40 }
41
42 void setTid(Long tid) {
43 this.tid = tid;
44 }
45
46 }