insensa.commands
Class AbstractCommandProblem

java.lang.Object
  extended by insensa.commands.AbstractCommandProblem
All Implemented Interfaces:
ICommandProblem
Direct Known Subclasses:
ErrorMessageProblem

public class AbstractCommandProblem
extends java.lang.Object
implements ICommandProblem


Field Summary
private  java.lang.String errorMessage
           
private  java.util.List<ISolution> solutions
           
 
Constructor Summary
AbstractCommandProblem()
           
 
Method Summary
 void addSolution(ISolution solution)
           
 java.lang.String getErrorMessage()
           
 java.util.List<ISolution> getSolutions()
           
 void setErrorMessage(java.lang.String errorMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solutions

private java.util.List<ISolution> solutions

errorMessage

private java.lang.String errorMessage
Constructor Detail

AbstractCommandProblem

public AbstractCommandProblem()
Method Detail

addSolution

public void addSolution(ISolution solution)
Specified by:
addSolution in interface ICommandProblem
See Also:
ICommandProblem.addSolution(insensa.commands.ISolution)

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in interface ICommandProblem
Returns:
See Also:
ICommandProblem.getErrorMessage()

getSolutions

public java.util.List<ISolution> getSolutions()
Specified by:
getSolutions in interface ICommandProblem
Returns:
See Also:
ICommandProblem.getSolutions()

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Specified by:
setErrorMessage in interface ICommandProblem
See Also:
ICommandProblem.setErrorMessage(java.lang.String)