Class ISOBaseValidator
java.lang.Object
org.jpos.iso.ISOBaseValidator
- All Implemented Interfaces:
Configurable, ISOValidator, LogSource
Base Validator class for jPOS composed ISOComponents (ISOMsg).
Title: jPOS
Description: Java Framework for Financial Systems
Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.
Company: www.jPOS.org
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag used to indicate if validat process break on first error or keep an error setprotected ConfigurationThe configuration for this validator.protected LoggerThe logger for this validator.protected StringThe realm string for this validator. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ISOBaseValidator(boolean breakOnError) Creates the validator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether validation should stop on first error.Returns the Logger associated with this source.getRealm()Returns the log realm associated with this source.voidsetBreakOnError(boolean breakOnErr) Sets whether validation should stop on first error.voidConfigures this object with the suppliedConfiguration.voidAttaches aLoggerand realm to this log source.Validate field-interdependency.
-
Field Details
-
logger
-
realm
-
breakOnError
Flag used to indicate if validat process break on first error or keep an error set -
cfg
The configuration for this validator.
-
-
Constructor Details
-
ISOBaseValidator
public ISOBaseValidator()Default constructor. -
ISOBaseValidator
Creates the validator.- Parameters:
breakOnError- flag indicating validation abort condition
-
-
Method Details
-
setConfiguration
Description copied from interface:ConfigurableConfigures this object with the suppliedConfiguration.- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException- if the configuration is invalid
-
breakOnError
Returns whether validation should stop on first error.- Returns:
- true if break-on-error is set
-
setBreakOnError
Sets whether validation should stop on first error.- Parameters:
breakOnErr- if true, stop on first error
-
validate
Validate field-interdependency.- Specified by:
validatein interfaceISOValidator- Parameters:
m- Component to validate- Returns:
- ISOComponent or ISOVComponent resulting of validation process.
- Throws:
ISOException- if break-on-error is true and an error succedd.
-
setLogger
-
getLogger
-
getRealm
-