Class IVA_ALPHANUMNOZERO_NOBLANK
java.lang.Object
org.jpos.iso.ISOFieldValidator
org.jpos.iso.IVA_ALPHANUM
org.jpos.iso.IVA_ALPHANUMNOZERO
org.jpos.iso.IVA_ALPHANUMNOZERO_NOBLANK
- All Implemented Interfaces:
Configurable, ISOValidator
Validator for ASCII alphanum no-zero no-blank filled fields.
Title: jPOS
Description: Java Framework for Financial Systems
Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.
Company: www.jPOS.org
-
Field Summary
Fields inherited from class ISOFieldValidator
breakOnError, cfg, description, fieldId, maxLen, minLenModifier and TypeFieldDescriptionprotected booleanFlag used to indicate if validat process break on first error or keep an error vectorprotected ConfigurationThe validator configuration.protected Stringbrief field descriptionprotected intfield idprotected intfield length boundsprotected intfield length bounds -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IVA_ALPHANUMNOZERO_NOBLANK(boolean breakOnError, int minLen, int maxLen, String Description) Constructs a validator with a custom break-on-error flag and explicit length bounds.IVA_ALPHANUMNOZERO_NOBLANK(boolean breakOnError, int maxLen, String Description) Constructs a validator with a custom break-on-error flag and a maximum length.IVA_ALPHANUMNOZERO_NOBLANK(boolean breakOnError, String Description) Constructs a validator with a custom break-on-error flag.IVA_ALPHANUMNOZERO_NOBLANK(int minLen, int maxLen, String Description) Constructs a validator with explicit length bounds.IVA_ALPHANUMNOZERO_NOBLANK(int maxLen, String Description) Constructs a validator with a maximum length.IVA_ALPHANUMNOZERO_NOBLANK(String Description) Constructs a validator using only a description. -
Method Summary
Modifier and TypeMethodDescriptionValidate that the component is not blank-filled.Methods inherited from class ISOFieldValidator
breakOnError, getDescription, getFieldId, getRejCode, setBreakOnError, setConfiguration, setDescription, setFieldId, setMaxLength, setMinLengthModifier and TypeMethodDescriptionbooleanReturns whether break-on-error is set.Returns the field description.intReturns the field ID.getRejCode(int ErrType) Get the reject code for an error type.voidsetBreakOnError(boolean breakOnErr) Sets whether to break on first error.voidDefault config params are: min-len Minimun length, max-len Max length, break-on-error break condition.voidsetDescription(String description) Sets the field description.voidsetFieldId(int f) Sets the field ID.voidsetMaxLength(int maxLen) Sets the maximum field length.voidsetMinLength(int minLen) Sets the minimum field length.
-
Constructor Details
-
IVA_ALPHANUMNOZERO_NOBLANK
public IVA_ALPHANUMNOZERO_NOBLANK()Default constructor. -
IVA_ALPHANUMNOZERO_NOBLANK
Constructs a validator using only a description.- Parameters:
Description- human-readable field description
-
IVA_ALPHANUMNOZERO_NOBLANK
Constructs a validator with explicit length bounds.- Parameters:
minLen- minimum acceptable lengthmaxLen- maximum acceptable lengthDescription- human-readable field description
-
IVA_ALPHANUMNOZERO_NOBLANK
Constructs a validator with a maximum length.- Parameters:
maxLen- maximum acceptable lengthDescription- human-readable field description
-
IVA_ALPHANUMNOZERO_NOBLANK
Constructs a validator with a custom break-on-error flag.- Parameters:
breakOnError- iftrue, validation throws on the first errorDescription- human-readable field description
-
IVA_ALPHANUMNOZERO_NOBLANK
Constructs a validator with a custom break-on-error flag and a maximum length.- Parameters:
breakOnError- iftrue, validation throws on the first errormaxLen- maximum acceptable lengthDescription- human-readable field description
-
IVA_ALPHANUMNOZERO_NOBLANK
Constructs a validator with a custom break-on-error flag and explicit length bounds.- Parameters:
breakOnError- iftrue, validation throws on the first errorminLen- minimum acceptable lengthmaxLen- maximum acceptable lengthDescription- human-readable field description
-
-
Method Details
-
validate
Validate that the component is not blank-filled.- Specified by:
validatein interfaceISOValidator- Overrides:
validatein classIVA_ALPHANUMNOZERO- Parameters:
f- component to validate- Returns:
- the validated (possibly wrapped) component
- Throws:
ISOException- ifISOFieldValidator.breakOnErroris set and the field is blank or fails the inherited zero-fill check- See Also:
-