public class ListenerExceptionPropagator extends Object implements ProblemListener
| Constructor and Description |
|---|
ListenerExceptionPropagator(ValidateProblemHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocation(String location)
Adds a location to the listener.
|
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 |
printHeader(String title) |
void |
record(String location) |
public ListenerExceptionPropagator(ValidateProblemHandler handler)
public void addProblem(ValidationProblem problem)
ProblemHandleraddProblem in interface ProblemHandlerproblem - the validation problem encounteredpublic int getErrorCount()
ProblemListenergetErrorCount in interface ProblemListenerpublic int getWarningCount()
ProblemListenergetWarningCount in interface ProblemListenerpublic int getInfoCount()
ProblemListenergetInfoCount in interface ProblemListenerpublic boolean hasProblems(String location, boolean includeChildren)
ProblemListenerhasProblems in interface ProblemListenerlocation - the target locationincludeChildren - true, if problems for child locations should be includedpublic ExceptionType getSeverity(String location, boolean includeChildren)
ProblemListenergetSeverity in interface ProblemListenerlocation - the target locationincludeChildren - true, if problems in children of the target should be includedpublic Collection<ValidationProblem> getProblemsForLocation(String location, boolean includeChildren)
ProblemListenergetProblemsForLocation in interface ProblemListenerlocation - the target locationincludeChildren - true, if problems for child locations should be includedpublic void addLocation(String location)
ProblemListeneraddLocation in interface ProblemListenerlocation - the location of the label being validated.public void record(String location)
public void printHeader(String title)
Copyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.