-
1. Re: Object creation: default and non-default ctors
aloubyansky Feb 14, 2006 9:06 AM (in response to aloubyansky)Also, I would appreciate thoughts on the default value for 'useNoArgCtorIfFound'. Currently, it's false.
-
2. Re: Object creation: default and non-default ctors
starksm64 Mar 3, 2006 11:39 AM (in response to aloubyansky)This would seem to intersect with the recent discussion of how property editors might fit into jbossxb. It raises the bigger question of what controls string to object conversion. In the case of N attributes matching an N argument ctor, what controls the type matching?
In the case of an attribute of type string, is there any conversion capability/defaults in jaxb? -
3. Re: Object creation: default and non-default ctors
aloubyansky Mar 3, 2006 11:52 AM (in response to aloubyansky)First, all children are collected including values of both simple and complex types. Default binding of XSD built-in simple types are taken from the JAXB2.0 spec and can also be found here http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossXB_DefaultBinding
-
4. Re: Object creation: default and non-default ctors
aloubyansky Mar 3, 2006 11:53 AM (in response to aloubyansky)You can override defaults using your own CharactersHandler.
-
5. Re: Object creation: default and non-default ctors
starksm64 Mar 3, 2006 12:10 PM (in response to aloubyansky)Do CharactersHandler apply to both TEXT and attribute values? If so, then it seems like we need a jbxb: set of extension types that cover things like java.net.URL, java.net.InetAddress, etc for which we already have property editor converters.
The problem then becomes how these types get injected into the current document SchemaBinding. This could be done via a jbxb: annotation on the associated document schema, as well as via an external jbxb binding instruction descriptor. Have we got into providing support for the latter yet? -
6. Re: Object creation: default and non-default ctors
aloubyansky Mar 4, 2006 3:00 PM (in response to aloubyansky)Do CharactersHandler apply to both TEXT and attribute values?
Yes.
jbxb:javaValue annotation could be used in the XSD on an attribute or characters content to customize the binding.
"External jbxb binding instruction descriptor" is not supported. But is required by the JAXB spec, AFAIK.