Re: [castor-dev] cloning an invalid object

2004-04-12 Thread Robert La Ferla
FYI - I found that the exception was being thrown due to a bug and not because of validation. --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

[castor-dev] cloning an invalid object

2004-04-12 Thread Robert La Ferla
I need to clone an object that doesn't validate. e.g. throws a ValidationException I tried disabling validation by setting org.exolab.castor.marshalling.validation=true before cloning it but I still get the exception. To clone, I am using writeObject() to write the object to an Objec

Re: [castor-dev] Iterator instead of Enumeration?

2004-03-17 Thread Robert La Ferla
On Mar 17, 2004, at 3:52 PM, Keith Visco wrote: I think Roberts concern was that when using -types j2 he's getting Enumeration instead of Iterator, so that code needs to be updated. That is what I meant but I don't know how you read my mind. I am indeed using j2 types. Also, it would be nic

Re: [castor-dev] Ignore extra elements when Unmarshalling bug??

2004-03-15 Thread Robert La Ferla
This is definitely a bug in Castor. If you instantiate the Unmarshaller using a class, it works fine: unmarshaller = new Unmarshaller(MyType.class); unmarshaller.setIgnoreExtraAttributes(true); unmarshaller.setIgnoreExtraElements(true); reader = new FileReader(filename); myobj = (MyType)unmarsha

Re: [castor-dev] List guidelines...reminder

2004-02-19 Thread Robert La Ferla
Could you temporarily unsubscribe him so we don't get a hundred out-of-the office messages and also so that the message archive doesn't get cluttered? Keith Visco wrote: Sorry for the administrative spam, but every now and then I'm forced to send this out: For those of you not currently "out of

Re: [castor-dev] Re: ERROR

2004-02-06 Thread Robert La Ferla
I think Exolab is using "minimalist" for this mailing list. I don't know but other mailing list management software packages have a way to strip attachments, filter spam and such. Has Exolab ever considered using Mailman, http://www.list.org I know Mailman is very popular and has all sorts o

[castor-dev] Custom mapping?

2004-02-03 Thread Robert La Ferla
I need to generate classes that use slightly different methods than the ones the SourceGenerator creates. Will a mapping file allow me to do this? I have never used one and I can't seem to find much on the subject or at least I may be looking the wrong place. In particular, I'd like to create

Re: [castor-dev] SourceGenerator fails to generate imports

2004-01-23 Thread Robert La Ferla
Thanks Keith! That will work and also simplify everything especially when used with the generate imported schema option. Robert Keith Visco wrote: Hi Robert, You need to set the namespace->package mappings in castor.properties (or castorbuilder.properties) See the following in the castor xml

Re: [castor-dev] SourceGenerator fails to generate imports

2004-01-23 Thread Robert La Ferla
Keith Visco wrote: Imported schema are not generated by default, please see my other reply. :-) I think I have a better understanding of the problem. I am calling the SourceGenerator twice but each time for a different package. How could SourceGenerator possibly know about the other package