]>
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
;
7 import org
.argeo
.slc
.structure
.StructureElement
;
10 * Basic implementation of <code>StructureElement</code>.
14 public class SimpleSElement
implements StructureElement
{
18 private Map
<String
, String
> tags
= new TreeMap
<String
, String
>();
21 public SimpleSElement() {
25 public SimpleSElement(String label
) {
30 public SimpleSElement(String label
, String defaultLabel
) {
31 this(label
!= null ? label
: defaultLabel
);
35 public SimpleSElement(SimpleSElement sElement
) {
36 setLabel(sElement
.getLabel());
37 setTags(new TreeMap
<String
, String
>(sElement
.getTags()));
40 public String
getLabel() {
44 /** Sets the label. */
45 public void setLabel(String label
) {
49 public Long
getTid() {
53 void setTid(Long tid
) {
57 public Map
<String
, String
> getTags() {
61 public void setTags(Map
<String
, String
> tags
) {
66 public SimpleSElement
clone() {
67 return new SimpleSElement(this);