|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.objects.parameters.errors.ParameterErrors
public class ParameterErrors
A report object of any parameter errors that have occurred in the initialization of a stage. These will be injected into a stage attribute for evaluation by the stage as the developer sees fit.
Constructor Summary | |
---|---|
ParameterErrors(IStageInstance stageInstance)
Constructor. |
Method Summary | |
---|---|
void |
addParameterError(String parameterId,
ParameterError error)
Adds a new parameter to. |
void |
discardAllErrors()
Discards all errors. |
void |
discardErrors(String parameterId)
Discards all errors for a specific parameter. |
void |
discardErrorsOfType(ParameterErrorType type)
Discards all errors for a specific parameter. |
Map<String,ParameterErrorList> |
getAllParameterErrors()
Get all errors for all parameters. |
ParameterErrorList |
getErrorsForParameter(String parameterID)
Retrieves the errors for a given parameter ID. |
boolean |
hasErrors()
Checks if errors exist. |
boolean |
hasErrorsForForm(String formName)
Checks if errors exist. |
boolean |
hasErrorsIgnoreParcialSubmitErrors()
Checks if errors exist. |
Object |
refreshParameter(IParameter<?> param,
IStageInstance stageInstance)
Refreshes the passed parameter and adds errors to the list if they are detected. |
void |
refreshParameters(IStageInstance stageInstance)
Refreshes all remaining parameters and adds errors to the list if they are detected. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterErrors(IStageInstance stageInstance)
stageInstance
- the current stageMethod Detail |
---|
public void addParameterError(String parameterId, ParameterError error) throws ParameterException
parameterId
- the parameter to add the error toerror
- the error
ParameterException
- if the parameter does not existpublic void discardAllErrors()
public void discardErrors(String parameterId)
parameterId
- the parameter to discard errorspublic void discardErrorsOfType(ParameterErrorType type)
type
- the parameter type of errors to discardpublic Map<String,ParameterErrorList> getAllParameterErrors()
public ParameterErrorList getErrorsForParameter(String parameterID)
parameterID
- the desired parameter id
public boolean hasErrors()
public boolean hasErrorsForForm(String formName)
formName
- the form name
public boolean hasErrorsIgnoreParcialSubmitErrors()
public Object refreshParameter(IParameter<?> param, IStageInstance stageInstance)
param
- the parameter to refreshstageInstance
- the stage of the refresh request
public void refreshParameters(IStageInstance stageInstance) throws ParameterException
stageInstance
- the stage of the refresh request
ParameterException
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |