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 teh active paths are executed. */
12 public static String ACTIVE
= "ACTIVE";
14 /** Adds an element to the registry. */
15 public void register(StructureElement element
);
18 * Adds the wrapped element of a <code>SructureAware</code>, and
19 * propagates the registration.
21 public void register(StructureAware structureAware
);
23 /** Lists <b>all</b> registered elements. */
24 public List
<StructureElement
> listElements();
26 /** Gets a element based on its path. */
27 public StructureElement
getElement(StructurePath path
);
30 * Set the interpreter mode: read, all or active.
36 public void setMode(String mode
);
39 * Gets the current interpreter mode.
45 public String
getMode();
48 * Gets the list of active paths, which will be run if executed in
49 * <code>ACTIVE</code> mode.
51 public List
<StructurePath
> getActivePaths();
54 * Sets the list of active path, which will be run if executed in
55 * <code>ACTIVE</code> mode.
57 public void setActivePaths(List
<StructurePath
> activePaths
);