Class ShareItemListRequestValidator
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.validator.ShareItemListRequestValidator
-
- All Implemented Interfaces:
RequestValidator
public class ShareItemListRequestValidator extends Object implements RequestValidator
Validates a share item list request.- Author:
- Jacob Mitash
-
-
Constructor Summary
Constructors Constructor Description ShareItemListRequestValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansupports(Class<?> clazz)Tells whether this validator supports the given type.voidvalidate(Object rawRequestBody, org.springframework.validation.Errors errors)Validates the given request body.protected voidvalidateTarget(ShareItemListRequest.Target target, org.springframework.validation.Errors errors)Validates a single share target.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.cartoperation.web.validator.RequestValidator
validate
-
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> clazz)
Description copied from interface:RequestValidatorTells whether this validator supports the given type.- Specified by:
supportsin interfaceRequestValidator- Parameters:
clazz- the class of the instance that will be tested/validated- Returns:
- true if this validator can support the given type, false otherwise
-
validate
public void validate(Object rawRequestBody, org.springframework.validation.Errors errors)
Description copied from interface:RequestValidatorValidates the given request body.- Specified by:
validatein interfaceRequestValidator- Parameters:
rawRequestBody- the request body to validateerrors- the errors to contribute to when validation errors occur
-
validateTarget
protected void validateTarget(ShareItemListRequest.Target target, org.springframework.validation.Errors errors)
Validates a single share target.- Parameters:
target- the target to validateerrors- the errors to add validation errors to
-
-