Class IVA_NUM

All Implemented Interfaces:
Configurable, ISOValidator
Direct Known Subclasses:
IVA_NUMNOZERO

public class IVA_NUM extends ISOFieldValidator
Validator for ASCII numeric fields. By default radix is 10.

Title: jPOS

Description: Java Framework for Financial Systems

Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.

Company: www.jPOS.org

  • Field Details

    • radix

      protected int radix
      by default is decimal
  • Constructor Details

    • IVA_NUM

      public IVA_NUM()
      Default constructor.
    • IVA_NUM

      public IVA_NUM(String Description)
      radix = 10.
      Parameters:
      Description - Brief description.
    • IVA_NUM

      public IVA_NUM(String Description, int radix)
      Constructs a validator with the given description and numeric radix.
      Parameters:
      Description - Brief description.
      radix - numeric radix
    • IVA_NUM

      public IVA_NUM(int maxLen, String Description)
      Constructs a validator with a maximum length.
      Parameters:
      maxLen - maximum acceptable length
      Description - Brief description.
    • IVA_NUM

      public IVA_NUM(int maxLen, String Description, int radix)
      Constructs a validator with a maximum length and numeric radix.
      Parameters:
      maxLen - maximum acceptable length
      Description - Brief description.
      radix - numeric radix
    • IVA_NUM

      public IVA_NUM(int minLen, int maxLen, String Description)
      Create the validator. Radix is 10.
      Parameters:
      minLen - min length.
      maxLen - max length
      Description - Validator description
    • IVA_NUM

      public IVA_NUM(int minLen, int maxLen, String Description, int radix)
      Create the validator
      Parameters:
      minLen - min length.
      maxLen - max length
      Description - Validator description
      radix - numeric radix for numeric validation
    • IVA_NUM

      public IVA_NUM(boolean breakOnError, String Description)
      Constructs a validator with a custom break-on-error flag and description.
      Parameters:
      breakOnError - if true, validation throws on the first error
      Description - Brief description.
    • IVA_NUM

      public IVA_NUM(boolean breakOnError, String Description, int radix)
      Constructs a validator with a custom break-on-error flag, description, and radix.
      Parameters:
      breakOnError - if true, validation throws on the first error
      Description - Brief description.
      radix - numeric radix
    • IVA_NUM

      public IVA_NUM(boolean breakOnError, int maxLen, String Description)
      Constructs a validator with a custom break-on-error flag and a maximum length.
      Parameters:
      breakOnError - if true, validation throws on the first error
      maxLen - maximum acceptable length
      Description - Brief description.
    • IVA_NUM

      public IVA_NUM(boolean breakOnError, int maxLen, String Description, int radix)
      Constructs a validator with a custom break-on-error flag, max length, and radix.
      Parameters:
      breakOnError - if true, validation throws on the first error
      maxLen - maximum acceptable length
      Description - Brief description.
      radix - numeric radix
    • IVA_NUM

      public IVA_NUM(boolean breakOnError, int minLen, int maxLen, String Description)
      Constructs a validator with a custom break-on-error flag and explicit length bounds.
      Parameters:
      breakOnError - if true, validation throws on the first error
      minLen - minimum acceptable length
      maxLen - maximum acceptable length
      Description - Brief description.
    • IVA_NUM

      public IVA_NUM(boolean breakOnError, int minLen, int maxLen, String Description, int radix)
      Constructs a validator with a custom break-on-error flag, length bounds, and radix.
      Parameters:
      breakOnError - if true, validation throws on the first error
      minLen - minimum acceptable length
      maxLen - maximum acceptable length
      Description - Brief description.
      radix - numeric radix
  • Method Details