hi.
I have written a xml schema describing my object and generated the classes using the SourceGenerator class.
the thing is that I want to access to some objects inside the main object by a key instead of their position(that is, using a map instead an array/list)
I thought it was possible using a mapping file, but the problem is that because the classes were already generated, it seems that I cannot alter them dinamically using the Unmarshaller/Marshaller class in this way:


Mapping mapping = new Mapping();
mapping.loadMapping(mappingFileName);
Unmarshaller um = new Unmarshaller();
um.setMapping(mapping);
this.indexPostcard = (IndexPostcards)um.unmarshal(indexFile);

I become the following error:
org.exolab.castor.mapping.MappingException : The return type for method public com.postcard.indexer.Category[] com.postcard.indexer.IndexType.getCategory() does not match the declared field type java.util.Map


any way to achieve what I want?
any links/examples will be appreciated.

thx in advance


/* * Dagi3d v3.0 * http://dagi3d.net */

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to