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;fp=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fstructure%2FSimpleSElement.java;h=8681865662b6fc3dfdb88019eb96cbc84e70291a;hb=faf680e212bf3e18837c4f798587856e061273b3;hp=0000000000000000000000000000000000000000;hpb=5764eb4717599e8df700094e7f0360a155e2a3bb;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 new file mode 100644 index 000000000..868186566 --- /dev/null +++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/SimpleSElement.java @@ -0,0 +1,45 @@ +package org.argeo.slc.core.structure; + + +/** + * Basic implementation of StructureElement. + * + * @see TreeSPath + */ +public class SimpleSElement implements StructureElement { + /** For ORM */ + private Long tid; + private String description; + + /** For ORM */ + public SimpleSElement() { + } + + /** Constructor */ + public SimpleSElement(String description) { + this.description = description; + } + + /** Constructor */ + public SimpleSElement(String description, String defaultDescription) { + this(description != null ? description : defaultDescription); + } + + public String getDescription() { + return description; + } + + /** Sets the description. */ + public void setDescription(String description) { + this.description = description; + } + + Long getTid() { + return tid; + } + + void setTid(Long tid) { + this.tid = tid; + } + +}