Message Validation
Hi,
I'm new to SWIFT also WIFE. I want to ask something about validation in WIFE.
I noticed that in the source code like "Field20C.java", the code comments show
as follow: validation pattern: :4!c//16x()
parser pattern: :S//S
components pattern: SS
What's the meaning of "validation pattern", "components pattern"? Can I write
my own code to validate the field, what's the semantics of that?
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The validation pattern is similar to the way SWIFT defines fields structure in
the standard. You should refer to the standard to fully understand it and be
able to implement your validation code.
The parser and component patters are something we invented to generate the
FieldNN classes from templates, and we keep that on the javadoc for
convenience.
Message Validation
Hi,
I'm new to SWIFT also WIFE. I want to ask something about validation in WIFE.
I noticed that in the source code like "Field20C.java", the code comments show
as follow:
validation pattern: :4!c//16x()
parser pattern: :S//S
components pattern: SS
What's the meaning of "validation pattern", "components pattern"? Can I write
my own code to validate the field, what's the semantics of that?
Thank you!
Hi,
The validation pattern is similar to the way SWIFT defines fields structure in
the standard. You should refer to the standard to fully understand it and be
able to implement your validation code.
The parser and component patters are something we invented to generate the
FieldNN classes from templates, and we keep that on the javadoc for
convenience.
Just in case you are interested, check out our complementary component to
perform full messages validations:
http://www.prowidesoftware.com/en/prowide-swift-integrator-overview/swift-
validator.html
Regards.
The validation component is not free?
No, validation is a complementary commercial component.
The open source component has the core model, parser, writer, xml conversion
and persistence mappings.
Regards.
I see, thank you.