]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc/src/main/java/org/argeo/slc/core/structure/tree/TreeSElement.java
Simplify structure framework
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / structure / tree / TreeSElement.java
1 package org.argeo.slc.core.structure.tree;
2
3 import org.argeo.slc.core.structure.StructureElement;
4
5 /**
6 * Implementation of <code>StructureElement</code> for tree based registries,
7 * using <code>TreeSPath</code>
8 *
9 * @see TreeSPath
10 */
11 public class TreeSElement implements StructureElement {
12 private String description;
13
14 public TreeSElement(String description){
15 this.description = description;
16 }
17
18 public TreeSElement(String description, String defaultDescription){
19 this(description!=null?description:defaultDescription);
20 }
21
22 public String getDescription() {
23 return description;
24 }
25
26 public void setDescription(String description) {
27 this.description = description;
28 }
29
30 }