Hi,

What's the output you'd expect from marshalling ? And can I assume that you are testng this agains the latest 1.1.3 snapshot release (as important parts of the logic related to Java 5 enums has been refactored).

Werner

Agarwal, Rahul wrote:
The search function on the list doesn’t work I’m probably asking a question that’s been asked before…

I am trying to Marshall a Java 5 enum that is multiple custom fields like:

enum MyEnum{

VALUE1(“name”, “message”, “code”)

String getName…

String getMessage…

..

}

How do I write a Castor mapping file for this? I’m trying to write <field name=”name”… > but it doesn’t work. I understand I cant unmarshall which is fine, I just want to be able to marshall the enum with its fields. Currently I’m only able to get it like <myenum>VALUE1</mayenum>

Any help would be appreciated. (I know the workaround but I don’t want to unnecessarily create a bean which will basically be the same as my enum).

Thanks

Rahul



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to