public class DefaultModelJobValidatorServiceProvider extends Object implements JobValidatorService
Constructor and Description |
---|
DefaultModelJobValidatorServiceProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkVariableFormat(Task task,
JobVariable variable,
ModelValidatorContext context) |
void |
validateJob(InputStream jobInputStream)
Validate the provided xml job file, before the job is parsed by the scheduler
If this validator does not validate against the xml file, leave the implementation
empty.
|
TaskFlowJob |
validateJob(TaskFlowJob job)
Validate a job object after the job has been parsed by the scheduler.
|
public DefaultModelJobValidatorServiceProvider()
public void validateJob(InputStream jobInputStream) throws JobValidationException
JobValidatorService
validateJob
in interface JobValidatorService
jobInputStream
- job file content to validateJobValidationException
- if the job is not validpublic TaskFlowJob validateJob(TaskFlowJob job) throws JobValidationException
JobValidatorService
validateJob
in interface JobValidatorService
job
- job object to validateJobValidationException
- if the job is not validprotected void checkVariableFormat(Task task, JobVariable variable, ModelValidatorContext context) throws JobValidationException
JobValidationException