I understand, and that is something that I am planning to do.  

Even the Java binding is not working out for the schema I am working on.  In
an element:

<Field tc="1">Illinois</Field>

Castor creates a class called Field that holds the tc and the actual text.
However, in my case, the tc and Field are the same thing, 1=Illinois, so
this field can actually be simplified to:

setField(int number);

or, more truthfully

setField(Some_Enum_Class.TYPE1);

And I'd like to modify castor to do that.  Because, without this
simplification, the ACORD XMLife and TXLife models are almost unworkable in
Castor, much more complex than they need to be.


Jim


Jim Brain, [EMAIL PROTECTED]
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
SYSTEMS ARCHITECT, ITS, AEGON FINANCIAL PARTNERS

 -----Original Message-----
From:   Keith Visco [mailto:[EMAIL PROTECTED] 
Sent:   Friday, April 04, 2003 2:05 PM
To:     [EMAIL PROTECTED]
Subject:        Re: [castor-dev] In SourceGenerator, are SourceFactory and
JClass replaceable


Hi Jim,

We didn't design the SourceGenerator to be that customizable where you
could change the language. It was written for Java specifically.

Even if you were able to modify Castor in order to generate source code
in another language, you would not be able to marshal/unmarshal that
code unless you ported the marshaller/unmarshaller to the same language. 

--Keith

"Brain, Jim" wrote:
> 
> It looks like, if I wanted to use Castor to generate VB or C#, I'd need to
> replace these 2 classes with my own implementations.  Is there any way to
do
> this?
> 
> .NET doesn't handle redundant includes, so it is not working out
> As for VB, I am not finding a lot to work with.
> 
> Jim
> 
> Jim Brain, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> "Researching tomorrow's decisions today."
> (319) 369-2070 (work)
> Systems Architect, ITS, AEGON Financial Partners
> 
> -----------------------------------------------------------
> 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

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

Reply via email to