@Component public class UinValidatorImpl extends Object implements UinValidator<String>
| Constructor and Description |
|---|
UinValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
validateId(String id)
Method used for Validate UIN against acceptance Criteria
|
public boolean validateId(String id)
validateId in interface UinValidator<String>id - pass a UIN in String format example : String inputFile =
"201308710214"InvalidIDException - If entered UIN is empty or null.InvalidIDException - If entered UIN contain any sequential and repeated
block of number for 2 or more than two digits",InvalidIDException - If entered UIN length should be specified number
of digit.InvalidIDException - If entered UIN contain any alphanumeric charactersInvalidIDException - If entered UIN should not match with checksumInvalidIDException - If entered UIN contain Zero or One as first Digit.Copyright © 2020. All rights reserved.