Menu

Message Validation

huangzhtao
2012-08-16
2012-10-23
  • huangzhtao

    huangzhtao - 2012-08-16

    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!

     
  • Sebastian Zubrinic

    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.

     
  • huangzhtao

    huangzhtao - 2012-08-17

    The validation component is not free?

     
  • Sebastian Zubrinic

    No, validation is a complementary commercial component.

    The open source component has the core model, parser, writer, xml conversion
    and persistence mappings.

    Regards.

     
  • huangzhtao

    huangzhtao - 2012-08-20

    I see, thank you.

     

Log in to post a comment.