I am using the castor generator to generate java classes representing my schema. In
my schema I have 2 elements of the same name (but with differing contexts and
therefore differing contents). When I generate the classes I get a message saying
"certificate.java already exists. overwrite?(y|n|?) : ". If I answer yes, it
overwrites the first Certificate element class it created. I want to be able to have
both elements. Is there some way I can specify to write one of the elements to a
different class name, or a way I can make the classes generated into context specific
names?
ie. A simple example:
<person>
<address></address>
</person>
<dog>
<address></address>
</dog>
obviously for a person we need to know different information about their address (eg
street/town) than we would for a dog (kennel), therefore the two address classes would
need to be different, ideally castor would create two separate classes personAddress
and dogAddress. Or I could specify names for them so that one doesn't overwrite the
other?
Unfortunately the schema was provided to me by a client and can therefore not be
changed.
Thoughts are welcome thanks.
Alex Edwards
Senior Analyst Programmer
CITEC
Ph: 322 22226
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev