commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [betwixt] bug: output is in reverse order of input...
Date Fri, 14 Jun 2002 04:00:13 GMT
From: "Jon Scott Stevens" <jon@latchkey.com>
> on 6/13/02 11:24 AM, "robert burrell donkin" <robertdonkin@mac.com> wrote:
>
> > it's hard to see how betwixt could automatically guess the ordering
> > without access to the DTD. it might be necessary to create betwixt file
or
> > an XMLBeanInfo class to correctly order the output.
> >
> > - robert
>
> I'm not sure if it is possible to get this information from reflection,
but
> I would be ok with making the ordering the same as the ordering of the
get()
> methods in the class file.

The ordering by default is the same as the order returned by the BeanInfo
returned by the Introspector in java.beans. Unfortunately this bears no
relation to the order in the class file :-(. It does seem to be constant
though :-) I suspect its some hash-order or something.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message