|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.api.validation.ValidationResults.Builder
public static final class ValidationResults.Builder
A builder which can be used to construct ValidationResults
instances. Enforces the constraints of the ValidationResultsContract
.
Method Summary | |
---|---|
void |
addError(String errorMessage)
Convenience method for adding an error message |
void |
addError(String fieldName,
String errorMessage)
Convenience method for adding an error message for a given field |
ValidationResults |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static ValidationResults.Builder |
create()
|
static ValidationResults.Builder |
create(ValidationResultsContract contract)
|
Map<String,String> |
getErrors()
|
void |
setErrors(Map<String,String> errors)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ValidationResults.Builder create()
public static ValidationResults.Builder create(ValidationResultsContract contract)
public ValidationResults build()
ModelBuilder
build
in interface ModelBuilder
public Map<String,String> getErrors()
getErrors
in interface ValidationResultsContract
public void setErrors(Map<String,String> errors)
public void addError(String errorMessage)
errorMessage
- public void addError(String fieldName, String errorMessage)
errorMessage
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |