public class ProblemContainer extends Object implements ProblemListener
| Constructor and Description |
|---|
ProblemContainer() |
| 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.
|
void |
clear()
Clears all problems.
|
int |
getErrorCount()
Gets the number of error problems encountered.
|
int |
getInfoCount()
Gets the number of informational problems encountered.
|
int |
getProblemCount()
Gets the number of problems reported.
|
List<ValidationProblem> |
getProblems()
Gets the 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 |
hasError() |
Boolean |
hasFatal() |
Boolean |
hasInfo() |
boolean |
hasProblems(String location,
boolean includeChildren)
Tests whether a target has had problems reported.
|
Boolean |
hasWarning() |
public void addProblem(ValidationProblem problem)
ProblemHandleraddProblem in interface ProblemHandlerproblem - the validation problem encounteredpublic void addLocation(String location)
ProblemListeneraddLocation in interface ProblemListenerlocation - the location of the label being validated.public List<ValidationProblem> getProblems()
public int getProblemCount()
public void clear()
public int getErrorCount()
ProblemListenergetErrorCount in interface ProblemListenerpublic Boolean hasError()
public Boolean hasFatal()
public int getWarningCount()
ProblemListenergetWarningCount in interface ProblemListenerpublic Boolean hasWarning()
public int getInfoCount()
ProblemListenergetInfoCount in interface ProblemListenerpublic Boolean hasInfo()
public Collection<ValidationProblem> getProblemsForLocation(String location, boolean includeChildren)
ProblemListenergetProblemsForLocation in interface ProblemListenerlocation - the target locationincludeChildren - true, if problems for child locations should be includedpublic 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 includedCopyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.