public class SurveyErrors
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> |
_errors
The errors as a Map of field ID -> error messages.
|
| Constructor and Description |
|---|
SurveyErrors()
Default constructor.
|
SurveyErrors(java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> errors)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.String fieldId,
org.ametys.runtime.util.I18nizableText error)
Add an error.
|
void |
addErrors(java.lang.String fieldId,
java.util.List<org.ametys.runtime.util.I18nizableText> errors)
Add an error list.
|
java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> |
getErrors()
Get the errors.
|
boolean |
hasErrors()
Tests if the form has errors.
|
void |
setErrors(java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> errors)
Set the errors.
|
protected java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> _errors
public SurveyErrors()
public SurveyErrors(java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> errors)
errors - the errors.public java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> getErrors()
public void setErrors(java.util.Map<java.lang.String,java.util.List<org.ametys.runtime.util.I18nizableText>> errors)
errors - the errors to setpublic void addError(java.lang.String fieldId,
org.ametys.runtime.util.I18nizableText error)
fieldId - the field ID.error - the error message.public void addErrors(java.lang.String fieldId,
java.util.List<org.ametys.runtime.util.I18nizableText> errors)
fieldId - the field ID.errors - the error messages.public boolean hasErrors()
Copyright © 2010 Anyware Services. All Rights Reserved.