]>
git.argeo.org Git - gpl/argeo-slc.git/blob - StructureRegistry.java
e9091640840f3197141f91b77c874c04844e4845
1 package org
.argeo
.slc
.core
.structure
;
5 /** Registry where the whole structure is stored. */
6 public interface StructureRegistry
<P
extends StructurePath
> {
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
= "ACTIVE";
14 /** Adds an element to the registry. */
15 public void register(P 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
<P
> listPaths();
23 /** Gets a element based on its path. */
24 public <T
extends StructureElement
> T
getElement(P 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
<P
> 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
<P
> activePaths
);