public class ValidationResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationResult.ValidationError
This Class represents an error of validation.
|
Constructor and Description |
---|
ValidationResult(boolean isValid)
Create a Validation result object
|
ValidationResult(List<ValidationResult.ValidationError> errors)
Create a Validation Result object.
|
ValidationResult(ValidationResult.ValidationError error)
Create a Validation Result object.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(ValidationResult.ValidationError error)
Add error to the list of ValidationError.
|
void |
addErrors(List<ValidationResult.ValidationError> errors)
Add a set of errors to the list of ValidationError.
|
List<ValidationResult.ValidationError> |
getErrorsList() |
XMPMetadata |
getXmpMetaData() |
boolean |
isValid() |
void |
mergeResult(ValidationResult otherResult)
Add the ValidationError object of the otherResult in the Error list of the current object.
|
public ValidationResult(boolean isValid)
isValid
- public ValidationResult(ValidationResult.ValidationError error)
error
- if error is null, no error is added to the list.public ValidationResult(List<ValidationResult.ValidationError> errors)
errors
- if error is null, no error is added to the list.public void mergeResult(ValidationResult otherResult)
otherResult
- public XMPMetadata getXmpMetaData()
public boolean isValid()
public void addError(ValidationResult.ValidationError error)
error
- public void addErrors(List<ValidationResult.ValidationError> errors)
errors
- public List<ValidationResult.ValidationError> getErrorsList()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.