]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java
1 package org
.argeo
.slc
.core
.structure
;
4 import java
.util
.TreeMap
;
6 import org
.argeo
.slc
.core
.structure
.tree
.TreeSPath
;
9 * Basic implementation of <code>StructureElement</code>.
13 public class SimpleSElement
implements StructureElement
{
17 private Map
<String
, String
> tags
= new TreeMap
<String
, String
>();
20 public SimpleSElement() {
24 public SimpleSElement(String label
) {
29 public SimpleSElement(String label
, String defaultLabel
) {
30 this(label
!= null ? label
: defaultLabel
);
34 public SimpleSElement(SimpleSElement sElement
) {
35 setLabel(sElement
.getLabel());
36 setTags(new TreeMap
<String
, String
>(sElement
.getTags()));
39 public String
getLabel() {
43 /** Sets the label. */
44 public void setLabel(String label
) {
48 public Long
getTid() {
52 void setTid(Long tid
) {
56 public Map
<String
, String
> getTags() {
60 public void setTags(Map
<String
, String
> tags
) {
65 public SimpleSElement
clone() {
66 return new SimpleSElement(this);