Package adams.flow.container
Class ErrorContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.ErrorContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class ErrorContainer extends adams.flow.container.AbstractContainer
Container to send in case of errors.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_ERROR
the key for the error message.static String
VALUE_PAYLOAD
the key for the payload.static String
VALUE_SOURCE
the key for the origin.
-
Constructor Summary
Constructors Constructor Description ErrorContainer()
Initializes the container.ErrorContainer(Object payload, String error, String source)
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).
-
-
-
Field Detail
-
VALUE_PAYLOAD
public static final String VALUE_PAYLOAD
the key for the payload.- See Also:
- Constant Field Values
-
VALUE_ERROR
public static final String VALUE_ERROR
the key for the error message.- See Also:
- Constant Field Values
-
VALUE_SOURCE
public static final String VALUE_SOURCE
the key for the origin.- See Also:
- Constant Field Values
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceadams.flow.container.Container
- Specified by:
names
in classadams.flow.container.AbstractContainer
- Returns:
- iterator over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceadams.flow.container.Container
- Specified by:
isValid
in classadams.flow.container.AbstractContainer
- Returns:
- true if all the necessary values are available
-
-