pt.digitalis.dif.dem.objects.parameters.errors
Class ParameterErrorList

java.lang.Object
  extended by pt.digitalis.dif.dem.objects.parameters.errors.ParameterErrorList

public class ParameterErrorList
extends Object

A list of parameter errors for a given parameter

Author:
Pedro Viegas pviegas@digitalis.pt

Constructor Summary
ParameterErrorList(IParameter<?> parameter, Object attemptedValue)
          Default constructor
 
Method Summary
 void addError(ParameterError error)
          Adds an error to the list
 void addErrorList(List<ParameterError> errorList)
           
 Object getAttemptedValue()
           
 List<ParameterError> getErrorList()
           
 IParameter<?> getParameter()
           
 void setErrorList(List<ParameterError> errorList)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterErrorList

public ParameterErrorList(IParameter<?> parameter,
                          Object attemptedValue)
Default constructor

Parameters:
parameter - the parameter that caused the error
attemptedValue - the value that was attempted to pass to the parameter
Method Detail

getErrorList

public List<ParameterError> getErrorList()
Returns:
the errorList

setErrorList

public void setErrorList(List<ParameterError> errorList)
Parameters:
errorList - the errorList to set

addErrorList

public void addErrorList(List<ParameterError> errorList)
Parameters:
errorList - the errorList to add

addError

public void addError(ParameterError error)
Adds an error to the list

Parameters:
error - the error to add

getParameter

public IParameter<?> getParameter()
Returns:
the parameter

getAttemptedValue

public Object getAttemptedValue()
Returns:
the attemptedValue

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.