public class ValidationResult extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
boolean |
correct
Global correctness of the Tiff file.
|
ArrayList<ValidationEvent> |
errors
Errors List.
|
ArrayList<ValidationEvent> |
warnings
Warnings List.
|
| Constructor and Description |
|---|
ValidationResult(boolean validate)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ValidationResult validation)
Adds a validation result to this.
|
void |
addError(String desc,
String loc,
float value)
Adds an error.
|
void |
addError(String desc,
String loc,
long value)
Adds an error.
|
void |
addError(String desc,
String loc,
String value)
Adds an error.
|
void |
addErrorLoc(String desc,
String loc)
Adds an error.
|
void |
addWarning(String desc,
String value,
String loc)
Adds an warning.
|
ArrayList<ValidationEvent> |
getErrors()
Gets the errors.
|
boolean |
getFatalError() |
String |
getFatalErrorMessage() |
ArrayList<ValidationEvent> |
getWarnings()
Gets the warnings.
|
boolean |
isCorrect()
Checks if is correct.
|
void |
printErrors()
Prints the errors to the console.
|
void |
printWarnings()
Prints the warnings to the console.
|
void |
setFatalError(boolean value,
String message) |
public ArrayList<ValidationEvent> errors
public ArrayList<ValidationEvent> warnings
public boolean correct
public void addError(String desc, String loc, long value)
desc - Error descriptionloc - Error Locationvalue - the integer value that caused the errorpublic void addError(String desc, String loc, String value)
desc - Error descriptionloc - Error Locationvalue - the value that caused the errorpublic void addError(String desc, String loc, float value)
desc - Error descriptionloc - Error Locationvalue - the float value that caused the errorpublic void addErrorLoc(String desc, String loc)
desc - Error descriptionloc - the locationpublic void setFatalError(boolean value,
String message)
public boolean getFatalError()
public String getFatalErrorMessage()
public void addWarning(String desc, String value, String loc)
desc - Warning descriptionvalue - the String that caused the warningloc - the locationpublic void add(ValidationResult validation)
validation - the validation to addpublic void printErrors()
public void printWarnings()
public boolean isCorrect()
public ArrayList<ValidationEvent> getErrors()
public ArrayList<ValidationEvent> getWarnings()
Copyright © 2015–2020. All rights reserved.