Class WorkflowConnectionValidationResult
java.lang.Object
com.hybris.backoffice.workflow.designer.handler.connection.validator.WorkflowConnectionValidationResult
Validation results containing
Violations-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorkflowConnectionValidationResultConstant representing no validation errors, that is noViolations -
Method Summary
Modifier and TypeMethodDescriptionconcat(WorkflowConnectionValidationResult firstResult, WorkflowConnectionValidationResult secondResult) Creates new validation result based on the passed, existing resultsbooleaninthashCode()booleanisFailed()Checks if given result is failed, that is has violationsbooleanChecks if given result is successful, that is has no violationsofViolations(Violation... violations) Creates new validation result based on theViolations passedtoString()
-
Field Details
-
EMPTY
Constant representing no validation errors, that is noViolations
-
-
Method Details
-
ofViolations
Creates new validation result based on theViolations passed- Parameters:
violations- violation objects that are part of the created validation result- Returns:
- validation result containing passed violations
-
concat
public static WorkflowConnectionValidationResult concat(WorkflowConnectionValidationResult firstResult, WorkflowConnectionValidationResult secondResult) Creates new validation result based on the passed, existing results- Parameters:
firstResult- validation result of which violations are going to be merged into new resultsecondResult- validation result of which violations are going to be merged into new result- Returns:
- new validation result containing violations of two passed validation results
-
isSuccessful
public boolean isSuccessful()Checks if given result is successful, that is has no violations- Returns:
- true if result is successful, false otherwise
-
isFailed
public boolean isFailed()Checks if given result is failed, that is has violations- Returns:
- true if result is failed, false otherwise
-
getViolations
-
equals
-
hashCode
public int hashCode() -
toString
-