Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java @ 210:b75fca1ac215
Enhanced the State interface to retrieve its output modes.
artifacts/trunk@1541 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 23 Mar 2011 10:45:36 +0000 |
parents | 2a9591f76270 |
children | 3d14fe6e05f7 |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java Tue Mar 22 16:06:35 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java Wed Mar 23 10:45:36 2011 +0000 @@ -8,6 +8,7 @@ package de.intevation.artifactdatabase.state; import java.io.Serializable; +import java.util.List; import java.util.Map; import org.w3c.dom.Document; @@ -62,6 +63,15 @@ /** + * Returns the list of possible outputs of this state. The list is empty + * if no output is available for this state. + * + * @return a list of possible outputs of this state. + */ + public List<Output> getOutputs(); + + + /** * Initialize the state based on the state node in the configuration. * * @param config The state configuration node.