Hi Alex,

I am not an expert on Castor, but I think you can use the Castor mapping
system with the subclasses instead. However, I am not sure whether you then
actually can use the source generated classes to unmarshall because I think
the mapping file is used with some generic unmarshaller. We use another
approach were the generated classes are just used as some kind of DOM or AST
(Abstract Syntax Tree) to translate the objects in to another more complex
domain. We have our own simple generic translator framwork for this purpose.
Although we do not use the source generated classes directly in our
application, it is still a lot faster/simpler than other approaches. Our
core business logic is also decoupled from the type of XML
marshalling/unmarshalling framework that we use.

I hope you could use some of this information.

Best Regards
Mario Juric
---
Mario Juric, M.Sc. CS, MUSTER Product Manager
IFAD, Forskerparken 10, DK - 5230 Odense M
Phone: +45 63 15 71 31 Fax: +45 65 93 29 99
www: www.ifad.dk e-mail: [EMAIL PROTECTED]
---

----- Original Message -----
From: "POLLOCK Alex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 10:08 AM
Subject: [castor-dev] Source Generator - unmarshalling into sub classes


> I've just started using the Castor Source Generator to unmarshall XML file
> into an internal java object representation. But I would like to add my
> application-specific behaviour so I want to use sub-classes of the classes
> generated by the Source Generator. Is there any way of unmarshalling XML
> data into subclasses of the generated classes?
>
> Thanks for any help.
> Alex
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>

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

Reply via email to