]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java
Various fixes so that SLC example works again
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / structure / SimpleSElement.java
index 8681865662b6fc3dfdb88019eb96cbc84e70291a..69c3e0905aca5529f4ff4592088f9d537aaa5eae 100644 (file)
@@ -1,5 +1,7 @@
 package org.argeo.slc.core.structure;\r
 \r
+import java.util.Map;\r
+import java.util.TreeMap;\r
 \r
 /**\r
  * Basic implementation of <code>StructureElement</code>.\r
@@ -9,32 +11,33 @@ package org.argeo.slc.core.structure;
 public class SimpleSElement implements StructureElement {\r
        /** For ORM */\r
        private Long tid;\r
-       private String description;\r
+       private String label;\r
+       private Map<String, String> tags = new TreeMap<String, String>();\r
 \r
        /** For ORM */\r
        public SimpleSElement() {\r
        }\r
 \r
        /** Constructor */\r
-       public SimpleSElement(String description) {\r
-               this.description = description;\r
+       public SimpleSElement(String label) {\r
+               this.label = label;\r
        }\r
 \r
        /** Constructor */\r
-       public SimpleSElement(String description, String defaultDescription) {\r
-               this(description != null ? description : defaultDescription);\r
+       public SimpleSElement(String label, String defaultLabel) {\r
+               this(label != null ? label : defaultLabel);\r
        }\r
 \r
-       public String getDescription() {\r
-               return description;\r
+       public String getLabel() {\r
+               return label;\r
        }\r
 \r
-       /** Sets the description. */\r
-       public void setDescription(String description) {\r
-               this.description = description;\r
+       /** Sets the label. */\r
+       public void setLabel(String label) {\r
+               this.label = label;\r
        }\r
 \r
-       Long getTid() {\r
+       public Long getTid() {\r
                return tid;\r
        }\r
 \r
@@ -42,4 +45,12 @@ public class SimpleSElement implements StructureElement {
                this.tid = tid;\r
        }\r
 \r
+       public Map<String, String> getTags() {\r
+               return tags;\r
+       }\r
+\r
+       public void setTags(Map<String, String> tags) {\r
+               this.tags = tags;\r
+       }\r
+\r
 }\r