Class TEST0100
java.lang.Object
org.jpos.iso.ISOBaseValidator
org.jpos.iso.validator.TEST0100
- All Implemented Interfaces:
Configurable, ISOValidator, LogSource
ONLY TEST PURPOSE.
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 TypeMethodDescriptionvoidConfigures this object with the suppliedConfiguration.Validate field-interdependency.Methods inherited from class ISOBaseValidator
breakOnError, getLogger, getRealm, setBreakOnError, 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.voidAttaches aLoggerand realm to this log source.
-
Constructor Details
-
TEST0100
public TEST0100()Default constructor. -
TEST0100
Constructs the validator with the requested error behaviour.- Parameters:
breakOnError- whentrue, validation throws on the first error
-
-
Method Details
-
setConfiguration
Description copied from interface:ConfigurableConfigures this object with the suppliedConfiguration.- Specified by:
setConfigurationin interfaceConfigurable- Overrides:
setConfigurationin classISOBaseValidator- Parameters:
cfg- Configuration object- Throws:
ConfigurationException- if the configuration is invalid
-
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.
-