# HG changeset patch # User Ingo Weinzierl # Date 1300877136 0 # Node ID b75fca1ac21526d2b70a8c1af5d60661fb21de47 # Parent 1a3fb29b8b2e476fc3d7bb00b31e7c773f8a6f12 Enhanced the State interface to retrieve its output modes. artifacts/trunk@1541 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 1a3fb29b8b2e -r b75fca1ac215 ChangeLog --- 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 + + * 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 * artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java, diff -r 1a3fb29b8b2e -r b75fca1ac215 artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.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 getOutputs(); + + + /** * Initialize the state based on the state node in the configuration. * * @param config The state configuration node.