Follow bean-conventions for the fields of "Result".
This commit is contained in:
parent
55a4fc76fa
commit
5e49659787
|
@ -40,6 +40,19 @@ public interface Guideline<T> {
|
||||||
|
|
||||||
// When status == ERROR, the internal error is held here
|
// When status == ERROR, the internal error is held here
|
||||||
String internalError();
|
String internalError();
|
||||||
|
|
||||||
|
|
||||||
|
// Follow the bean conventions.
|
||||||
|
int getScore();
|
||||||
|
void setScore(int score);
|
||||||
|
Status getStatus();
|
||||||
|
void setStatus(String status);
|
||||||
|
Iterable<String> getWarnings();
|
||||||
|
void setWarnings(Iterable<String> warnings);
|
||||||
|
Iterable<String> getErrors();
|
||||||
|
void setErrors(Iterable<String> errors);
|
||||||
|
String getInternalError();
|
||||||
|
void setInternalError(String internalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue