Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-25 Thread Andrew Bowden
t: Re: [HAPI-devel] HAPI 2.1 and overriding validation No, validation rules are additive. Particularly, message rules (e.g. with a terser expression) do not override primitive rules, they further restrict the content of a specific field within the bounds of the rules of its (primitive) type! I wou

Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-25 Thread Christian Ohr
[mailto:[email protected]] > *Sent:* Monday, 23 September 2013 5:22 PM > *To:* Andrew Bowden > *Cc:* [email protected] > *Subject:* Re: [HAPI-devel] HAPI 2.1 and overriding validation > > ** ** > > Hi Andrew, > > note that there is only

Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-24 Thread Andrew Bowden
[email protected]] Sent: Monday, 23 September 2013 5:22 PM To: Andrew Bowden Cc: [email protected] Subject: Re: [HAPI-devel] HAPI 2.1 and overriding validation Hi Andrew, note that there is only a (primitive) validation for TN, not for XTN, in DefaultValidationBuilder. And, there

Re: [HAPI-devel] HAPI 2.1 and overriding validation

2013-09-23 Thread Christian Ohr
Hi Andrew, note that there is only a (primitive) validation for TN, not for XTN, in DefaultValidationBuilder. And, there is the DefaultValidationWithoutTNBuilder for exactly the reason you mentioned. So subclass this builder instead. Hope this helps Christian 2013/9/23 Andrew Bowden > Hi there

[HAPI-devel] HAPI 2.1 and overriding validation

2013-09-23 Thread Andrew Bowden
Hi there, I have recently started using HAPI and am impressed by the amount of function in the toolkit. I have been struggling for about a week with the correct way to override the validation and am hoping that someone on this list can help me. I have a segment that fails validation for an XTN