You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/11/04 13:17:18 UTC

[commons-validator] branch master updated: Docs on updating the set of entries

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git


The following commit(s) were added to refs/heads/master by this push:
     new 8267ec1  Docs on updating the set of entries
8267ec1 is described below

commit 8267ec18f5f8eec7a5f88c6a63b56f451d2b1e61
Author: Sebb <se...@apache.org>
AuthorDate: Wed Nov 4 13:17:09 2020 +0000

    Docs on updating the set of entries
---
 .../commons/validator/routines/IBANValidator.java      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/main/java/org/apache/commons/validator/routines/IBANValidator.java b/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
index 11ff4ff..7fc9458 100644
--- a/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
+++ b/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
@@ -24,6 +24,24 @@ import org.apache.commons.validator.routines.checkdigit.IBANCheckDigit;
 
 /**
  * IBAN Validator.
+ * <p>
+ * The validator includes a default set of formats derived from the IBAN registry at
+ * https://www.swift.com/standards/data-standards/iban.
+ * <p>
+ * This can get out of date, but the set can be adjusted by creating a validator and using the
+ * {@link #setValidator(String, int, String)} or 
+ * {@link #setValidator(Validator)}
+ * method to add (or remove) an entry.
+ * <p>
+ * For example:
+ * <p>
+ * <code>
+ * IBANValidator ibv = new IBANValidator();
+ * <p>
+ * ibv.setValidator("XX", 12, "XX\\d{10}")
+ * </code>
+ * <p>
+ * The singleton default instance cannot be modifed in this way.
  * @since 1.5.0
  */
 public class IBANValidator {