Mercurial > dive4elements > framework
changeset 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 | 1a3fb29b8b2e |
children | 435631e07da2 |
files | ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Mar 22 16:06:35 2011 +0000 +++ b/ChangeLog Wed Mar 23 10:45:36 2011 +0000 @@ -1,3 +1,9 @@ +2011-03-23 Ingo Weinzierl <ingo@intevation.de> + + * artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java: + The State interface defines a method to retrieve the state's output + modes now. + 2011-03-22 Ingo Weinzierl <ingo@intevation.de> * artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java,
--- 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.