]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java
- Documentation
[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 private String description;
12
13 public SimpleSElement(String description) {
14 this.description = description;
15 }
16
17 public SimpleSElement(String description, String defaultDescription) {
18 this(description != null ? description : defaultDescription);
19 }
20
21 public String getDescription() {
22 return description;
23 }
24
25 public void setDescription(String description) {
26 this.description = description;
27 }
28
29 }