Task.Status
Constructor and Description |
---|
ValidationTask(ProblemListener problemListener,
RuleContext context,
TargetRegistrar targetRegistrar)
Creates a new instance of the validation task.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(TaskAdvisor advisor)
Executes the task with a given advisor to detect cancel requests.
|
List<TargetWithErrors> |
getAllTargets() |
int |
getErrorCount()
Gets the count of errors encountered.
|
int |
getErrorLimit()
Gets the limit on the number of errors found.
|
int |
getInfoCount()
Gets the count of informational events encountered.
|
String |
getLocation()
Gets the location of the target to validate.
|
ProblemListener |
getProblemListener()
Gets the problem listener for getting problems found.
|
TargetRegistrar |
getRegistrar()
Gets the registrar for getting target information.
|
String |
getValidationType()
Gets the type of validation.
|
int |
getWarningCount()
Gets the count of warnings encountered.
|
void |
setErrorLimit(int limit)
Sets the limit on the number of errors encountered before
the validation will terminate.
|
void |
setLocation(String location)
Sets the location to validate.
|
void |
setRule(ValidationRule rule)
Sets the validation rule to use.
|
void |
setRuleManager(ValidationRuleManager ruleManager)
Sets the validation rule manager to use for finding validation rules.
|
public ValidationTask(ProblemListener problemListener, RuleContext context, TargetRegistrar targetRegistrar)
listener
- the problem listener for the taskpublic String getLocation()
public void setLocation(String location)
location
- the location to validatepublic int getErrorLimit()
public void setErrorLimit(int limit)
limit
- the error limitpublic String getValidationType()
public void setRule(ValidationRule rule)
rule
- the validation rulepublic void execute(TaskAdvisor advisor)
Task
public int getErrorCount()
public int getWarningCount()
public int getInfoCount()
public void setRuleManager(ValidationRuleManager ruleManager)
ruleManager
- the rule manager to usepublic TargetRegistrar getRegistrar()
public ProblemListener getProblemListener()
public List<TargetWithErrors> getAllTargets()
Copyright © 2010–2016 Planetary Data System. All rights reserved.