Class MerchantIdNotNullForPosValidator
java.lang.Object
it.pagopa.swclient.mil.validation.constraints.MerchantIdNotNullForPosValidator
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<MerchantIdNotNullForPos,
CommonHeader>
public class MerchantIdNotNullForPosValidator
extends Object
implements jakarta.validation.ConstraintValidator<MerchantIdNotNullForPos,CommonHeader>
If Channel
equals to POS
, the MerchantId
must not be null.
- Author:
- Antonio Tarricone
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(CommonHeader commonHeader, jakarta.validation.ConstraintValidatorContext context) IfChannel
equals toPOS
, theMerchantId
must not be null.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
MerchantIdNotNullForPosValidator
public MerchantIdNotNullForPosValidator()Default constructor.
-
-
Method Details
-
isValid
public boolean isValid(CommonHeader commonHeader, jakarta.validation.ConstraintValidatorContext context) If
Channel
equals toPOS
, theMerchantId
must not be null.- Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<MerchantIdNotNullForPos,
CommonHeader> - See Also:
-