]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/StructureRegistry.java
1 package org
.argeo
.slc
.core
.structure
;
5 /** Registry where the whole structure is stored. */
6 public interface StructureRegistry
{
7 /** Read mode: the structure is only read. */
8 public static String READ
= "READ";
9 /** All mode: everything is executed regardless of the active paths. */
10 public static String ALL
= "ALL";
11 /** Active mode: only the active paths are executed. */
12 public static String ACTIVE
= "STATUS_ACTIVE";
14 /** Adds an element to the registry. */
15 public void register(StructurePath path
, StructureElement element
);
17 /** Lists <b>all</b> registered elements. */
18 public List
<StructureElement
> listElements();
20 /** Lists <b>all</b> registered elements. */
21 public List
<StructurePath
> listPaths();
23 /** Gets a element based on its path. */
24 public StructureElement
getElement(StructurePath path
);
27 * Set the interpreter mode: read, all or active.
33 public void setMode(String mode
);
36 * Gets the current interpreter mode.
42 public String
getMode();
45 * Gets the list of active paths, which will be run if executed in
46 * <code>STATUS_ACTIVE</code> mode.
48 public List
<StructurePath
> getActivePaths();
51 * Sets the list of active path, which will be run if executed in
52 * <code>STATUS_ACTIVE</code> mode.
54 public void setActivePaths(List
<StructurePath
> activePaths
);