pt.digitalis.dif.dem.objects.parameters.errors
Class ParameterErrorList
java.lang.Object
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
ParameterErrorList
public ParameterErrorList(IParameter<?> parameter,
Object attemptedValue)
- Default constructor
- Parameters:
parameter
- the parameter that caused the errorattemptedValue
- the value that was attempted to pass to the parameter
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.