Interface FulfillmentAddressSubmitValidator
- All Superinterfaces:
FulfillmentValidator
,org.springframework.validation.SmartValidator
,org.springframework.validation.Validator
- All Known Implementing Classes:
DefaultFulfillmentAddressSubmitValidator
Validates a submitted address of a fulfillment group.
- Author:
- Jacob Mitash
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Hint to the validator that the city name is not required.static final String
Hint to the validator that the company name is required.static final String
Hint to the validator that the country is not required.static final String
Hint to the validator that the county is required.static final String
Hint to the validator that the email address is required.static final String
Hint to the validator the the primary phone number is not required.static final String
Hint to the validator that the postal code is not required.static final String
Hint to the validator that the state province region is not required.static final String
Hint to the validator to validate the first and last name individually as opposed to the full name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
supports
(com.broadleafcommerce.order.common.domain.Address address) Tells if this validator supports the given fulfillment group address.Methods inherited from interface com.broadleafcommerce.cartoperation.service.fulfillment.validation.FulfillmentValidator
getSupportedClass, supports, validate, validate, validate, validate, validate, validateWithDataHolder
Methods inherited from interface org.springframework.validation.SmartValidator
validateValue
-
Field Details
-
HINT_VALIDATE_FIRST_AND_LAST
Hint to the validator to validate the first and last name individually as opposed to the full name.- See Also:
-
HINT_EMAIL_REQUIRED
Hint to the validator that the email address is required.- See Also:
-
HINT_COMPANY_NAME_REQUIRED
Hint to the validator that the company name is required.- See Also:
-
HINT_CITY_NOT_REQUIRED
Hint to the validator that the city name is not required.- See Also:
-
HINT_COUNTY_REQUIRED
Hint to the validator that the county is required.- See Also:
-
HINT_COUNTRY_NOT_REQUIRED
Hint to the validator that the country is not required.- See Also:
-
HINT_STATE_PROVINCE_REGION_NOT_REQUIRED
Hint to the validator that the state province region is not required.- See Also:
-
HINT_POSTAL_CODE_NOT_REQUIRED
Hint to the validator that the postal code is not required.- See Also:
-
HINT_PHONE_PRIMARY_NOT_REQUIRED
Hint to the validator the the primary phone number is not required.- See Also:
-
-
Method Details
-
supports
boolean supports(com.broadleafcommerce.order.common.domain.Address address) Tells if this validator supports the given fulfillment group address.- Parameters:
address
- the fulfillment group address to test support of- Returns:
- true if this supports validation of the given address, false otherwise
-