Package org.revapi.configuration
Class ValidationResult
- java.lang.Object
-
- org.revapi.configuration.ValidationResult
-
public final class ValidationResult extends Object
Represents the results of the the configuration validation.- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidationResult.Error
-
Constructor Summary
Constructors Constructor Description ValidationResult(String[] missingSchemas, ValidationResult.Error[] errors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationException
asException()
ValidationResult.Error[]
getErrors()
String[]
getMissingSchemas()
boolean
isSuccessful()
ValidationResult
merge(ValidationResult other)
static ValidationResult
success()
String
toString()
-
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(@Nullable String[] missingSchemas, @Nullable ValidationResult.Error[] errors)
-
-
Method Detail
-
success
public static ValidationResult success()
- Returns:
- new validation result representing successful validation.
-
merge
public ValidationResult merge(ValidationResult other)
-
getMissingSchemas
@Nullable public String[] getMissingSchemas()
- Returns:
- The list of schemas referenced from the "root" schemas that weren't found.
-
getErrors
@Nullable public ValidationResult.Error[] getErrors()
- Returns:
- Errors found during checking
-
isSuccessful
public boolean isSuccessful()
-
asException
public ConfigurationException asException()
-
-