Class Violations
java.lang.Object
com.codename1.backend.validation.Violations
Collects the
FieldErrors of one request. The generated validation code
calls it; an application has no reason to.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRecords one failure.voidcheck()Throws aValidationExceptionwhen anything was recorded.errors()What was recorded so far.static Stringprefix[index].static booleanWhethersis null or only whitespace.static Stringprefix.name, ornameat the root.
-
Constructor Details
-
Violations
public Violations()
-
-
Method Details
-
add
-
errors
-
check
public void check()Throws aValidationExceptionwhen anything was recorded. -
path
-
index
-
isBlank
Whethersis null or only whitespace.- Parameters:
s- the value- Returns:
- true when blank
-