]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRelatedHelper.java
Introduce context at ant level
[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.StructureRegistry;
4
5 /**
6 * Provides default implementations of some methods of
7 * <code>TreeSRelated</code>.
8 */
9 public abstract class TreeSRelatedHelper implements TreeSRelated {
10 private TreeSPath basePath;
11 private StructureRegistry<TreeSPath> registry;
12
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 }