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