Class PriceValidator
- java.lang.Object
-
- de.hybris.platform.ordermanagementwebservices.validators.PriceValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class PriceValidator extends java.lang.Object implements org.springframework.validation.ValidatorDefault price validatorPriceWsDTO. Checks if a price is valid.
-
-
Constructor Summary
Constructors Constructor Description PriceValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetFieldPath()voidsetFieldPath(java.lang.String fieldPath)booleansupports(java.lang.Class<?> clazz)voidvalidate(java.lang.Object target, org.springframework.validation.Errors errors)protected voidvalidatePriceWsDTO(PriceWsDTO price, org.springframework.validation.Errors errors)Validation for price of type PriceWsDTO
-
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> clazz)
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
public void validate(java.lang.Object target, org.springframework.validation.Errors errors)- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validatePriceWsDTO
protected void validatePriceWsDTO(PriceWsDTO price, org.springframework.validation.Errors errors)
Validation for price of type PriceWsDTO- Parameters:
price-errors-
-
getFieldPath
protected java.lang.String getFieldPath()
-
setFieldPath
public void setFieldPath(java.lang.String fieldPath)
-
-