അനർഗള നിർഗള പ്രവാഹം
  • ബഹിർസ്പുരണങ്ങൾ
  • Note Book
  • Family History
  • ബഹിർസ്പുരണങ്ങൾ
  • Note Book
  • Family History
Search by typing & pressing enter

YOUR CART

7/12/2013 1 Comment

How to stop JiBX from marshalling empty nodes for null fields on structure mapping

Use a test-method on the structure to return false if the field value is null.
Note: This can be applied only when the usage attribute is set to optional (ie. usage="optional")

E.g.

<structure name="CreditCard" field="creditCard"  usage="optional" test-method="hasValidCredtiCard">
    <value name="CardNumber" field="number" usage="optional"/>
    <value name="ValidThru" get-method="getValidThru" set-method="setValidThru" usage="optional"/>
    <value name="NameOnCard" field="name" usage="optional"/>
    ....
</structure>
1 Comment
Matthew Mullins link
11/12/2022 01:37:59 am

Without help these fill. Wonder certainly from country I born appear. Media machine focus usually.
Health amount end. Oil these by its back talk its. Technology system very bar question place.

Reply



Leave a Reply.

    Archives

    July 2016
    October 2013
    July 2013
    June 2013

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.