commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [betwixt] Specify a certain class in a betwixt file
Date Thu, 01 Sep 2005 22:06:38 GMT
On Thu, 2005-09-01 at 14:10 +0200, Thomas Dudziak wrote:
> On 9/1/05, Wim Deblauwe <wim.deblauwe@gmail.com> wrote:
> 
> > is it possible to specify a certain type of class in you betwixt file that
> > the introspector should use?
> 
> Not sure whether really helps, but you might want to try the
> mappingDerivation attribute for your element:
> 
> mappingDerivation='introspection'
> 
> see here for more info:
> 
> http://jakarta.apache.org/commons/betwixt/guide/derived.html

there is a strategy which allows class substitution
(http://jakarta.apache.org/commons/betwixt/guide/binding.html#Introspection%20And%20Normalization)
but not forced substitution in a betwixt file.

try setting the 'type' property for the element. though not guaranteed,
it may work.

otherwise, i suggest downloading the latest source from SVN, building
and running an IDE debugging and examine the results of the
introspection. just run XMLIntrospector.introspect and take a look at
the element descriptor for maximum in the XmlBeanInfo. 

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message