public class ISOBaseValidator extends java.lang.Object implements ISOValidator, LogSource, Configurable
Title: jPOS
Description: Java Framework for Financial Systems
Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.
Company: www.jPOS.org
Modifier and Type | Field and Description |
---|---|
protected boolean |
breakOnError
Flag used to indicate if validat process break
on first error or keep an error set
|
protected Configuration |
cfg |
protected Logger |
logger |
protected java.lang.String |
realm |
Constructor and Description |
---|
ISOBaseValidator() |
ISOBaseValidator(boolean breakOnError)
Creates the validator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
breakOnError() |
Logger |
getLogger() |
java.lang.String |
getRealm() |
void |
setBreakOnError(boolean breakOnErr) |
void |
setConfiguration(Configuration cfg) |
void |
setLogger(Logger logger,
java.lang.String realm) |
ISOComponent |
validate(ISOComponent m)
Validate field-interdependency.
|
protected Logger logger
protected java.lang.String realm
protected boolean breakOnError
protected Configuration cfg
public ISOBaseValidator()
public ISOBaseValidator(boolean breakOnError)
breakOnError
- flag indicating validation abort conditionpublic void setConfiguration(Configuration cfg) throws ConfigurationException
setConfiguration
in interface Configurable
cfg
- Configuration objectConfigurationException
public boolean breakOnError()
public void setBreakOnError(boolean breakOnErr)
public ISOComponent validate(ISOComponent m) throws ISOException
validate
in interface ISOValidator
m
- Component to validateISOException
- if break-on-error is true and an error succedd.public void setLogger(Logger logger, java.lang.String realm)