|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.massimo.tools.scriptrunner.context.ValidationContext
public class ValidationContext
Tasks record themselves and their validation status in the ValidationContext, which generates a report. Each Task validates their own inputs and asks any child Tasks to do so as well. In this way, the ValidationContext visits all Tasks.
| Constructor Summary | |
|---|---|
ValidationContext()
|
|
| Method Summary | |
|---|---|
void |
addError(Task task,
String message)
Record a validation error message |
void |
addInfo(Task task,
String message)
Record a validation information message |
void |
addTask(Task task)
Each Task must add itself during the Task.validate(ValidationContext) call. |
protected void |
logMessage(Task task,
String message)
Record and log a message |
String |
report()
Generate a report based on all Tasks added and messages recorded. |
int |
validateNames()
Check task names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationContext()
| Method Detail |
|---|
public void addError(Task task,
String message)
task - message -
public void addInfo(Task task,
String message)
task - message - public void addTask(Task task)
task -
protected void logMessage(Task task,
String message)
task - message - public String report()
public int validateNames()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||