public class ProblemContainer extends java.lang.Object implements ProblemListener
Constructor and Description |
---|
ProblemContainer() |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(java.lang.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.
|
java.util.List<ValidationProblem> |
getProblems()
Gets the problems encountered.
|
java.util.Collection<ValidationProblem> |
getProblemsForLocation(java.lang.String location,
boolean includeChildren)
Gets a collection of problems for a given location.
|
ExceptionType |
getSeverity(java.lang.String location,
boolean includeChildren)
Gets the maximum severity of problems related to a location.
|
int |
getWarningCount()
Gets the number of warning problems encountered.
|
java.lang.Boolean |
hasError() |
java.lang.Boolean |
hasFatal() |
java.lang.Boolean |
hasInfo() |
boolean |
hasProblems(java.lang.String location,
boolean includeChildren)
Tests whether a target has had problems reported.
|
java.lang.Boolean |
hasWarning() |
public void addProblem(ValidationProblem problem)
ProblemHandler
addProblem
in interface ProblemHandler
problem
- the validation problem encounteredpublic void addLocation(java.lang.String location)
ProblemListener
addLocation
in interface ProblemListener
location
- the location of the label being validated.public java.util.List<ValidationProblem> getProblems()
public int getProblemCount()
public void clear()
public int getErrorCount()
ProblemListener
getErrorCount
in interface ProblemListener
public java.lang.Boolean hasError()
public java.lang.Boolean hasFatal()
public int getWarningCount()
ProblemListener
getWarningCount
in interface ProblemListener
public java.lang.Boolean hasWarning()
public int getInfoCount()
ProblemListener
getInfoCount
in interface ProblemListener
public java.lang.Boolean hasInfo()
public java.util.Collection<ValidationProblem> getProblemsForLocation(java.lang.String location, boolean includeChildren)
ProblemListener
getProblemsForLocation
in interface ProblemListener
location
- the target locationincludeChildren
- true, if problems for child locations should be includedpublic boolean hasProblems(java.lang.String location, boolean includeChildren)
ProblemListener
hasProblems
in interface ProblemListener
location
- the target locationincludeChildren
- true, if problems for child locations should be includedpublic ExceptionType getSeverity(java.lang.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-2019 Planetary Data System. All Rights Reserved.