Hi Ede, I'm not aware of a mechanism to define a default value in XML2Java framework. Currently, the default behaviour is to throw an exception if an attribute defined in a .java2xml configuration file is not there (null). Warning instead of throwing an exception is just a nasty hack we added to assure backward compatibility (attribute names logging a warn message are hard-coded in the XML2Java class). It could make sense to add a "default" attribute in the .java2xml object specification to manage this kind of situation in a proper way. Ex : <attribute xml-name="interior" java-name="interiorBorder" default="false"/> I can do a Feature Request in that way if you think it is a good idea. Michaël
|
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel