Package mil.nga.geopackage.dgiwg
Class DGIWGValidationErrors
- java.lang.Object
-
- mil.nga.geopackage.dgiwg.DGIWGValidationErrors
-
- All Implemented Interfaces:
Iterable<DGIWGValidationError>
public class DGIWGValidationErrors extends Object implements Iterable<DGIWGValidationError>
DGIWG (Defence Geospatial Information Working Group) validation errors- Since:
- 6.6.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description DGIWGValidationErrors()
ConstructorDGIWGValidationErrors(Collection<DGIWGValidationError> errors)
ConstructorDGIWGValidationErrors(DGIWGValidationError error)
ConstructorDGIWGValidationErrors(DGIWGValidationErrors errors)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Collection<DGIWGValidationError> errors)
Add validation errorsvoid
add(DGIWGValidationError error)
Add a validation errorvoid
add(DGIWGValidationErrors errors)
Add validation errorsDGIWGValidationError
getError(int index)
Get the validation error at the indexList<DGIWGValidationError>
getErrors()
Get the validation errorsboolean
hasErrors()
Has errorsboolean
isValid()
Check if validIterator<DGIWGValidationError>
iterator()
int
numErrors()
Get the number of errorsString
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
DGIWGValidationErrors
public DGIWGValidationErrors()
Constructor
-
DGIWGValidationErrors
public DGIWGValidationErrors(DGIWGValidationError error)
Constructor- Parameters:
error
- validation error
-
DGIWGValidationErrors
public DGIWGValidationErrors(Collection<DGIWGValidationError> errors)
Constructor- Parameters:
errors
- validation errors
-
DGIWGValidationErrors
public DGIWGValidationErrors(DGIWGValidationErrors errors)
Constructor- Parameters:
errors
- validation errors
-
-
Method Detail
-
add
public void add(DGIWGValidationError error)
Add a validation error- Parameters:
error
- validation error
-
add
public void add(Collection<DGIWGValidationError> errors)
Add validation errors- Parameters:
errors
- validation errors
-
add
public void add(DGIWGValidationErrors errors)
Add validation errors- Parameters:
errors
- validation errors
-
isValid
public boolean isValid()
Check if valid- Returns:
- true if valid
-
hasErrors
public boolean hasErrors()
Has errors- Returns:
- true if has errors
-
numErrors
public int numErrors()
Get the number of errors- Returns:
- error count
-
getErrors
public List<DGIWGValidationError> getErrors()
Get the validation errors- Returns:
- errors
-
getError
public DGIWGValidationError getError(int index)
Get the validation error at the index- Parameters:
index
- error index- Returns:
- error
-
iterator
public Iterator<DGIWGValidationError> iterator()
- Specified by:
iterator
in interfaceIterable<DGIWGValidationError>
-
-