X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fstructure%2Ftree%2FTreeSRelatedHelper.java;h=acc829c36fe59a4f78a1b78e72fa480faea59659;hb=56a8f70a587c793620d1bc2e73c847d935188001;hp=6e3a53a053eb855343b500a284fca3e6f052dc43;hpb=bcb5e50efd7e513288a40554c8223322bf50b07d;p=gpl%2Fargeo-slc.git
diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRelatedHelper.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRelatedHelper.java
index 6e3a53a05..acc829c36 100644
--- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRelatedHelper.java
+++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRelatedHelper.java
@@ -1,16 +1,16 @@
package org.argeo.slc.core.structure.tree;
+import org.argeo.slc.core.structure.SimpleSElement;
+import org.argeo.slc.core.structure.StructureElement;
import org.argeo.slc.core.structure.StructureRegistry;
/**
- * Provides default implementations of some methods of
- * TreeSRelated
.
+ * Provides default implementations of some methods of TreeSRelated
.
*/
public abstract class TreeSRelatedHelper implements TreeSRelated {
private TreeSPath basePath;
private StructureRegistry registry;
-
public TreeSPath getBasePath() {
return basePath;
}
@@ -24,4 +24,9 @@ public abstract class TreeSRelatedHelper implements TreeSRelated {
basePath = path;
this.registry = registry;
}
+
+ public StructureElement getStructureElement(String key) {
+ return new SimpleSElement(key);
+ }
+
}