package org.argeo.slc.example;\r
\r
+import org.argeo.slc.core.structure.SimpleSElement;\r
import org.argeo.slc.core.structure.StructureAware;\r
import org.argeo.slc.core.structure.StructureElement;\r
+import org.argeo.slc.core.structure.StructureElementProvider;\r
import org.argeo.slc.core.structure.StructurePath;\r
import org.argeo.slc.core.structure.StructureRegistry;\r
import org.argeo.slc.core.structure.tree.TreeSPath;\r
import org.argeo.slc.core.test.TestRun;\r
\r
/** Example task. */\r
-public class ExampleTask implements StructureAware, TestDefinition,\r
- StructureElement {\r
+public class ExampleTask implements StructureAware<TreeSPath>, TestDefinition,\r
+ StructureElementProvider {\r
private TreeSPath path;\r
private String description;\r
\r
result.addResultPart(part);\r
}\r
\r
- public void notifyCurrentPath(StructureRegistry registry, StructurePath path) {\r
- this.path = (TreeSPath) path;\r
+ public void notifyCurrentPath(StructureRegistry<TreeSPath> registry,\r
+ TreeSPath path) {\r
+ this.path = path;\r
}\r
\r
- public String getLabel() {\r
- return description;\r
+ public StructureElement createStructureElement() {\r
+ return new SimpleSElement(description);\r
}\r
\r
/** Sets the description. */\r