public interface HeaderValidator
Header
instances.
jDTAUS Banking SPI HeaderValidator
specification to be used by implementations to validate Header
instances to hold valid values.
Modifier and Type | Method and Description |
---|---|
IllegalHeaderException |
assertValidHeader(Header header,
IllegalHeaderException result)
Checks a given
Header instance to hold valid values for creating a new LogicalFile . |
IllegalHeaderException |
assertValidHeader(LogicalFile lFile,
Header header,
CurrencyCounter counter,
IllegalHeaderException result)
Checks a given
Header instance to hold valid values for updating a given LogicalFile with. |
IllegalHeaderException assertValidHeader(Header header, IllegalHeaderException result)
Header
instance to hold valid values for creating a new LogicalFile
.header
- The instance to check.result
- The validation result to be used or null
.result
(maybe null
if the implementation did not
detect illegal values).NullPointerException
- if header
is null
.IllegalHeaderException assertValidHeader(LogicalFile lFile, Header header, CurrencyCounter counter, IllegalHeaderException result) throws IOException
Header
instance to hold valid values for updating a given LogicalFile
with.lFile
- The logical file to update with header
.header
- The instance to check.counter
- A currency counter reflecting the state of lFile
.result
- The validation result to be used or null
.result
(maybe null
if the implementation did not
detect illegal values).NullPointerException
- if either lFile
, header
or counter
is null
.IOException
- if reading fails.Copyright © 2005–2014 jDTAUS. All rights reserved.