public class SimpleMergeValidationResult extends Object implements MergeValidationResult
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleMergeValidationResult.Builder |
| Constructor and Description |
|---|
SimpleMergeValidationResult(SimpleMergeValidationResult.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleMergeValidationResult.Builder |
builder(ValidationResult result) |
Iterable<ValidationError> |
getErrors() |
boolean |
isAuthorized() |
boolean |
isValid() |
ServiceException |
throwIfInvalid()
converts this validation result into an Exception and throws it
|
ServiceException |
throwIfInvalid(String msg)
converts this validation result into an Exception and throws it
|
public SimpleMergeValidationResult(SimpleMergeValidationResult.Builder builder)
public boolean isAuthorized()
isAuthorized in interface ValidationResultpublic boolean isValid()
isValid in interface ValidationResultpublic Iterable<ValidationError> getErrors()
getErrors in interface ValidationResultpublic ServiceException throwIfInvalid(String msg) throws ServiceException
ValidationResultthrowIfInvalid in interface ValidationResultServiceExceptionpublic ServiceException throwIfInvalid() throws ServiceException
ValidationResultfirst validation error will be used as message string
throwIfInvalid in interface ValidationResultAll implementations do not conform to specifications and return null. Either the implementation or the javadoc needs to be updated.
ServiceExceptionpublic static SimpleMergeValidationResult.Builder builder(ValidationResult result)
Copyright © 2003–2016 Atlassian. All rights reserved.