]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRelatedHelper.java
Simplify ANt-Spring bridge
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / structure / tree / TreeSRelatedHelper.java
1 package org.argeo.slc.core.structure.tree;
2
3 import org.argeo.slc.core.structure.SimpleSElement;
4 import org.argeo.slc.core.structure.StructureElement;
5 import org.argeo.slc.core.structure.StructureRegistry;
6
7 /**
8 * Provides default implementations of some methods of <code>TreeSRelated</code>.
9 */
10 public abstract class TreeSRelatedHelper implements TreeSRelated {
11 private TreeSPath basePath;
12 private StructureRegistry<TreeSPath> registry;
13
14 public TreeSPath getBasePath() {
15 return basePath;
16 }
17
18 public StructureRegistry<TreeSPath> getRegistry() {
19 return registry;
20 }
21
22 public void notifyCurrentPath(StructureRegistry<TreeSPath> registry,
23 TreeSPath path) {
24 basePath = path;
25 this.registry = registry;
26 }
27
28 public StructureElement getStructureElement(String key) {
29 return new SimpleSElement(key);
30 }
31
32 }