X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fstructure%2FSimpleSElement.java;h=69c3e0905aca5529f4ff4592088f9d537aaa5eae;hb=e860e15db1fd6dc797205de434c75a22f6e5f9a4;hp=8681865662b6fc3dfdb88019eb96cbc84e70291a;hpb=faf680e212bf3e18837c4f798587856e061273b3;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java index 868186566..69c3e0905 100644 --- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java +++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java @@ -1,5 +1,7 @@ package org.argeo.slc.core.structure; +import java.util.Map; +import java.util.TreeMap; /** * Basic implementation of StructureElement. @@ -9,32 +11,33 @@ package org.argeo.slc.core.structure; public class SimpleSElement implements StructureElement { /** For ORM */ private Long tid; - private String description; + private String label; + private Map tags = new TreeMap(); /** For ORM */ public SimpleSElement() { } /** Constructor */ - public SimpleSElement(String description) { - this.description = description; + public SimpleSElement(String label) { + this.label = label; } /** Constructor */ - public SimpleSElement(String description, String defaultDescription) { - this(description != null ? description : defaultDescription); + public SimpleSElement(String label, String defaultLabel) { + this(label != null ? label : defaultLabel); } - public String getDescription() { - return description; + public String getLabel() { + return label; } - /** Sets the description. */ - public void setDescription(String description) { - this.description = description; + /** Sets the label. */ + public void setLabel(String label) { + this.label = label; } - Long getTid() { + public Long getTid() { return tid; } @@ -42,4 +45,12 @@ public class SimpleSElement implements StructureElement { this.tid = tid; } + public Map getTags() { + return tags; + } + + public void setTags(Map tags) { + this.tags = tags; + } + }