| Constructor and Description |
|---|
ValidatorExecution(String validatorName,
ExitStatus exitStatus,
ExecutionMode executionMode)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.time.LocalDateTime |
getExecutionDateTime()
Get the date and time of this execution
|
String |
getExecutionMessage()
Get the message of this execution
|
ExitStatus |
getExitStatus()
Get the
ExitStatus of this execution |
String |
getValidatorName()
Get the logical name of the validator.
|
boolean |
isContinuable()
Indicates if next executions in the chain can continue.
|
boolean |
isFailed()
Indicates if this execution is failed
|
boolean |
isSkipped()
Indicates if this execution is skipped
|
boolean |
isStrict()
Indicates if this execution ran with strict mode on.
|
void |
setExecutionMessage(String executionMessage) |
void |
setFailureException(ValidationException failureException)
Sets the cause of failure
|
String |
toString() |
Optional<ValidationException> |
tryGetFailureException()
Get an
Optional containing the ValidationException responsible of the failure. |
public ValidatorExecution(String validatorName, ExitStatus exitStatus, ExecutionMode executionMode)
validatorName - the logical name of the validatorexitStatus - the ExitStatus for this executionpublic String getValidatorName()
public Optional<ValidationException> tryGetFailureException()
Optional containing the ValidationException responsible of the failure.public void setFailureException(ValidationException failureException)
failureException - the cause of failurepublic ExitStatus getExitStatus()
ExitStatus of this executionExitStatuspublic String getExecutionMessage()
public java.time.LocalDateTime getExecutionDateTime()
public void setExecutionMessage(String executionMessage)
public boolean isStrict()
public boolean isFailed()
public boolean isSkipped()
public boolean isContinuable()
Copyright © 2018 Latitude Srls. All rights reserved.