Class ChinesePostcodeValidateStrategy
- java.lang.Object
-
- de.hybris.platform.addressservices.strategies.impl.ChinesePostcodeValidateStrategy
-
- All Implemented Interfaces:
PostcodeValidateStrategy
public class ChinesePostcodeValidateStrategy extends java.lang.Object implements PostcodeValidateStrategy
A implementation for validating Chinese post code
-
-
Constructor Summary
Constructors Constructor Description ChinesePostcodeValidateStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetRegex()voidsetRegex(java.lang.String regex)booleanvalidate(java.lang.String postcode)validate the specific postcode
-
-
-
Method Detail
-
validate
public boolean validate(java.lang.String postcode)
Description copied from interface:PostcodeValidateStrategyvalidate the specific postcode- Specified by:
validatein interfacePostcodeValidateStrategy- Parameters:
postcode- the specific postcode- Returns:
- validated result
-
getRegex
protected java.lang.String getRegex()
-
setRegex
public void setRegex(java.lang.String regex)
-
-