users@jaxb.java.net

Re: sequence element order

From: Jimmy Han <jhan_at_cisco.com>
Date: Fri, 11 Feb 2005 14:14:10 -0800

Ryan,

Thanks for reply.
I am working on an editor that can edit objects of classes generated
by JAXB, using introspection. I'd like the editor to list elements
in a particular order that can be specified in the schema.

-
Jimmy

Ryan Shoemaker - JavaSoft East wrote:
> Jimmy Han wrote:
>
>> Hi,
>>
>> Is there a way for Java applications to get the order
>> of sequence elements? For example,
>>
>> <xsd:complexType name="MyObject">
>> <xsd:sequence>
>> <xsd:element name="A" type="xsd:string"/>
>> <xsd:element name="B" type="xsd:string"/>
>> </...
>> </...
>>
>> How can I know that A is before B using the generated classes?
>>
>
> You can't. In general, we don't expose much of the schema
> at all - things like min/maxOccurs, min/maxInclusive, etc.
>
> Can you explain why you need this information?
>
> Thanks,
>
> --Ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net