public class ProblemContainer extends Object implements ProblemListener
Constructor and Description |
---|
ProblemContainer() |
Modifier and Type | Method and Description |
---|---|
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.
|
ProblemDefinition.Severity |
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.
|
public void addProblem(ValidationProblem problem)
ProblemListener
addProblem
in interface ProblemListener
problem
- the validation problem encounteredpublic List<ValidationProblem> getProblems()
public int getProblemCount()
public void clear()
public int getErrorCount()
ProblemListener
getErrorCount
in interface ProblemListener
public int getWarningCount()
ProblemListener
getWarningCount
in interface ProblemListener
public int getInfoCount()
ProblemListener
getInfoCount
in interface ProblemListener
public Collection<ValidationProblem> getProblemsForLocation(String location, boolean includeChildren)
ProblemListener
getProblemsForLocation
in interface ProblemListener
location
- the target locationincludeChildren
- true, if problems for child locations should be includedpublic boolean hasProblems(String location, boolean includeChildren)
ProblemListener
hasProblems
in interface ProblemListener
location
- the target locationincludeChildren
- true, if problems for child locations should be includedpublic ProblemDefinition.Severity getSeverity(String location, boolean includeChildren)
ProblemListener
getSeverity
in interface ProblemListener
location
- the target locationincludeChildren
- true, if problems in children of the target should be includedCopyright © 2010–2016 Planetary Data System. All rights reserved.