users@jaxb.java.net

Accessing enumerations

From: Jon Richards <jon_at_richards-net.demon.co.uk>
Date: Mon, 17 May 2004 22:00:17 +0100

Hi everyone,

In our schemas we quite often use enumerated restrictions with string types. Is there any way of getting to them from the JAXB classes?

At the moment I'm hard coding static final strings in our code, but of course if the schema changes I'll have to remember to change the code and that doesn't seem right!

Thanks in advance,

Jon