public class ISINValidator extends Object implements Serializable
ISIN Numbers are 12 character alphanumeric codes used to identify Securities.
ISINs consist of two alphabetic characters, which are the ISO 3166-1 alpha-2 code for the issuing country, nine alpha-numeric characters (the National Securities Identifying Number, or NSIN, which identifies the security), and one numerical check digit. They are 12 characters in length.
See Wikipedia - ISIN for more details.
|Modifier and Type||Method and Description|
Return a singleton instance of the ISIN validator
Check the code is a valid ISIN code after any transformation by the validate routine.
Check the code is valid ISIN code.
public static ISINValidator getInstance(boolean checkCountryCode)
checkCountryCode- whether to check the country-code prefix or not
public boolean isValid(String code)
code- The code to validate.
trueif a valid ISIN code, otherwise
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.