Niels van Eijck wrote:
> Hi all,
>
> I am using jibx to marshall my objects to xml. After this, the xml is
> validated against an xsd. The xsd contains a lot of <xs:maxLength>
> restrictions.
>
> Does anybody know of a way to set the same restrictions in the jibx
> mapping? The behaviour I would like to have is either an exception
> thrown during marshalling or an automatic truncate of the string
> value.
>
> Any help is greatly appreciated, thanks in advance!
>
There is a post-set attribute, which specifies a method to call after
the data has been moved from the XML into the Java data. This post-set
method would do the exception throwing or data truncate.
--
Thomas Jones-Low Softstart Services Inc.
[EMAIL PROTECTED] JobScheduler for Oracle
Ph: 802-398-1012 http://www.softstart.com
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users