Class MSGTEST
java.lang.Object
org.jpos.iso.ISOBaseValidator
org.jpos.iso.validator.MSGTEST
- All Implemented Interfaces:
Configurable, ISOValidator, LogSource
Tester to validate msg.
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 ISOBaseValidator
breakOnError, cfg, logger, realmModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValidate field-interdependency.Methods inherited from class ISOBaseValidator
breakOnError, getLogger, getRealm, setBreakOnError, setConfiguration, setLoggerModifier 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.
-
Constructor Details
-
MSGTEST
public MSGTEST()Default constructor. -
MSGTEST
Constructs the validator with the requested error behaviour.- Parameters:
breakOnError- whentrue, validation throws on the first error
-
-
Method Details
-
validate
Description copied from class:ISOBaseValidatorValidate field-interdependency.- Specified by:
validatein interfaceISOValidator- Overrides:
validatein classISOBaseValidator- 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.
-