|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AnswerValidationError>
org.torweg.pulse.component.survey.model.AnswerValidationError
public enum AnswerValidationError
Error-Codes of the AbstractTypedAnswer<?> (for usage in
XSL). The AnswerValidationError will be set for the
AbstractTypedAnswer<?> during validation by the validating
AbstractQuestion.
AbstractQuestion.isValid(AbstractTypedAnswer)| Enum Constant Summary | |
|---|---|
BLANK_IS_NOT_ALLOWED
This error occurs if the actual {@code AbstractTypedAnswer |
|
QUESTION_DOES_NOT_MATCH
This error occurs if the actual questionId of the {@code AbstractTypedAnswer |
|
REGEX_MATCH_ERROR
This error occurs if the value of the actual {@code AbstractTypedAnswer |
|
VALUE_COUNT_ERROR
This error occurs if the value of the actual {@code AbstractTypedAnswer |
|
WRONG_TYPE
This error occurs if the actual class of the {@code AbstractTypedAnswer |
|
| Method Summary | |
|---|---|
static AnswerValidationError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AnswerValidationError[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AnswerValidationError WRONG_TYPE
AbstractTypedAnswer<?> passed to a
AbstractQuestion for validation the does not correspond to
the expected class.
public static final AnswerValidationError QUESTION_DOES_NOT_MATCH
AbstractTypedAnswer<?> passed to a
AbstractQuestion for validation the does not correspond to
the id of the validating AbstractQuestion.
public static final AnswerValidationError BLANK_IS_NOT_ALLOWED
AbstractTypedAnswer<?>
passed to a AbstractQuestion for validation is "blank",
while the setting for AbstractQuestion.isAllowBlank
is true.
With OpenQuestions this error occurs if the
String to be set as value for the
AbstractTypedAnswer<?>:
null
With SelectQuestions this error occurs if the
List<String> to be set as value for
the AbstractTypedAnswer<?>:
null
With QuestionGroups this error occurs if the
List<AbstractTypedAnswer<?>> to be set as
value for the AbstractTypedAnswer<?>:
null
public static final AnswerValidationError REGEX_MATCH_ERROR
AbstractTypedAnswer<?> passed to a
OpenQuestion for validation does not match a regular
expression the OpenQuestion might have set.
OpenQuestion.regexpressionpublic static final AnswerValidationError VALUE_COUNT_ERROR
AbstractTypedAnswer<?> passed to a
SelectQuestion for validation does have an invalid number of
values.
| Method Detail |
|---|
public static final AnswerValidationError[] values()
for(AnswerValidationError c : AnswerValidationError.values())
System.out.println(c);
public static AnswerValidationError valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||