Hi Johannes, You can write serializer and deserializer methods for the enum class, and either specify them directly at the point of use or define a <format>. The serializer/deserializer methods can then perform the case conversion going from/to the enum values.
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Johannes Müller wrote: > Hello all, > > by default, the mapping from XML values to a Java 1.5 enum is case sensitive. > That's reasonable in general because an "upper case" enum class is in fact > something different than the same-named enum class in lower case. > > At the moment, I am in the situation that the XML files to be unmarshalled > contain lower case values and the Java business model contains the > corresponding enums, but in upper case. > > Is there a straightforward method to let JiBX accept the lower case values > and map them to the corresponding upper case enums? Unfortunately, it is not > possible for me to align the schema instances and the business model. > > Any help would be appreciated. > > Johannes Mueller > ------------------------------------------------------------------------- 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
