|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.ISOFieldValidator
org.jpos.iso.IVA_NUM
public class IVA_NUM
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 Summary | |
|---|---|
protected int |
radix
by default is decimal |
| Fields inherited from class org.jpos.iso.ISOFieldValidator |
|---|
breakOnError, cfg, description, fieldId, maxLen, minLen |
| Constructor Summary | |
|---|---|
IVA_NUM()
|
|
IVA_NUM(boolean breakOnError,
int minLen,
int maxLen,
String Description)
|
|
IVA_NUM(boolean breakOnError,
int minLen,
int maxLen,
String Description,
int radix)
|
|
IVA_NUM(boolean breakOnError,
int maxLen,
String Description)
|
|
IVA_NUM(boolean breakOnError,
int maxLen,
String Description,
int radix)
|
|
IVA_NUM(boolean breakOnError,
String Description)
|
|
IVA_NUM(boolean breakOnError,
String Description,
int radix)
|
|
IVA_NUM(int minLen,
int maxLen,
String Description)
Create the validator. |
|
IVA_NUM(int minLen,
int maxLen,
String Description,
int radix)
Create the validator |
|
IVA_NUM(int maxLen,
String Description)
|
|
IVA_NUM(int maxLen,
String Description,
int radix)
|
|
IVA_NUM(String Description)
radix = 10. |
|
IVA_NUM(String Description,
int radix)
|
|
| Method Summary | |
|---|---|
void |
setConfiguration(Configuration cfg)
Configure the validator. |
ISOComponent |
validate(ISOComponent f)
Validate numeric condition. |
| Methods inherited from class org.jpos.iso.ISOFieldValidator |
|---|
breakOnError, getDescription, getFieldId, getRejCode, setBreakOnError, setDescription, setFieldId, setMaxLength, setMinLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int radix
| Constructor Detail |
|---|
public IVA_NUM()
public IVA_NUM(String Description)
Description - Brief description.
public IVA_NUM(String Description,
int radix)
public IVA_NUM(int maxLen,
String Description)
public IVA_NUM(int maxLen,
String Description,
int radix)
public IVA_NUM(int minLen,
int maxLen,
String Description)
minLen - min length.maxLen - max lengthDescription - Validator description
public IVA_NUM(int minLen,
int maxLen,
String Description,
int radix)
minLen - min length.maxLen - max lengthDescription - Validator descriptionradix - numeric radix for numeric validation
public IVA_NUM(boolean breakOnError,
String Description)
public IVA_NUM(boolean breakOnError,
String Description,
int radix)
public IVA_NUM(boolean breakOnError,
int maxLen,
String Description)
public IVA_NUM(boolean breakOnError,
int maxLen,
String Description,
int radix)
public IVA_NUM(boolean breakOnError,
int minLen,
int maxLen,
String Description)
public IVA_NUM(boolean breakOnError,
int minLen,
int maxLen,
String Description,
int radix)
| Method Detail |
|---|
public void setConfiguration(Configuration cfg)
throws ConfigurationException
setConfiguration in interface ConfigurablesetConfiguration in class ISOFieldValidatorcfg - configuration instance
ConfigurationException
public ISOComponent validate(ISOComponent f)
throws ISOException
validate in interface ISOValidatorvalidate in class ISOFieldValidatorf - ISOField to validate
ISOException - if any validation error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||