public interface ProblemListener
Modifier and Type | Method and Description |
---|---|
void |
addLocation(String location)
Adds a location to the listener.
|
void |
addProblem(LabelException exception)
Indicates another problem during the validation.
|
void |
addProblem(ValidationProblem problem)
Indicates another problem during the validation.
|
int |
getErrorCount()
Gets the number of error problems encountered.
|
int |
getInfoCount()
Gets the number of informational problems encountered.
|
Collection<ValidationProblem> |
getProblemsForLocation(String location,
boolean includeChildren)
Gets a collection of problems for a given location.
|
ExceptionType |
getSeverity(String location,
boolean includeChildren)
Gets the maximum severity of problems related to a location.
|
int |
getWarningCount()
Gets the number of warning problems encountered.
|
boolean |
hasProblems(String location,
boolean includeChildren)
Tests whether a target has had problems reported.
|
void addProblem(ValidationProblem problem)
problem
- the validation problem encounteredvoid addProblem(LabelException exception)
exception
- the label exception encountered.void addLocation(String location)
location
- the location of the label being validated.int getErrorCount()
int getWarningCount()
int getInfoCount()
boolean hasProblems(String location, boolean includeChildren)
location
- the target locationincludeChildren
- true, if problems for child locations should be includedExceptionType getSeverity(String location, boolean includeChildren)
location
- the target locationincludeChildren
- true, if problems in children of the target should be includedCollection<ValidationProblem> getProblemsForLocation(String location, boolean includeChildren)
location
- the target locationincludeChildren
- true, if problems for child locations should be includedCopyright © 2010–2018 Planetary Data System. All rights reserved.