Class DefaultValidationContext
java.lang.Object
org.citrusframework.validation.context.DefaultValidationContext
- All Implemented Interfaces:
ValidationContext
- Direct Known Subclasses:
DefaultMessageValidationContext
Default validation context keeps track of its status to mark if this context has been processed during the validation.
- Since:
- 2.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.validation.context.ValidationContext
ValidationContext.Builder<T extends ValidationContext,B extends ValidationContext.Builder<T, B>> -
Field Summary
Fields inherited from interface org.citrusframework.validation.context.ValidationContext
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMarks the validation result for this context.voidupdateStatus(ValidationStatus status) Updates the validation status if update is allowed according to the current status.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.validation.context.ValidationContext
requiresValidator
-
Constructor Details
-
DefaultValidationContext
public DefaultValidationContext()
-
-
Method Details
-
updateStatus
Updates the validation status if update is allowed according to the current status.- Specified by:
updateStatusin interfaceValidationContext- Parameters:
status- the new status
-
getStatus
Description copied from interface:ValidationContextMarks the validation result for this context. By default, all validation context do have the status UNKNOWN marking that the validation has not performed yet. Validators must set proper status after the validation to mark the context as being processed.- Specified by:
getStatusin interfaceValidationContext- Returns:
- the status indicating the validation result for this context.
-