[castor-dev] References by class type

2005-03-21 Thread Jeremy Haile
Is there any way to reference an object by ID, but only have Castor create the reference for a particular class. For example: myFruit myFruit The subelements in the baskets are mapped as references and the "name" attributes of the fruit would be mapped as the Castor "id". In Castor

[castor-dev] Advanced FieldHandlers

2004-09-22 Thread Jeremy Haile
I want to use advanced field handlers with Castor to pull in objects that are not defined in XML, but exist in a database. I'd like some feedback from any Castor XML developers as to whether or not this should be possible in the current code. What I essentially want to do is: a) Marshal or unma

[castor-dev] [XML] Castor Validation Bug Test Case

2004-07-09 Thread Jeremy Haile
I just posted a test case online for bug 1560 (http://bugzilla.exolab.org/show_bug.cgi?id=1560). I hope this can help us resolve this validation bug. If there is anything I can do to help debug this problem, let me know. Jeremy --- If

Re: [castor-dev] NullPointerException after switching from 0.9.3.21 to 0.9.5.3

2004-03-15 Thread Jeremy Haile
043 284 xx xx invece di 01 284 xx xx. > Numeri diretti fax: 043 338 xx xx invece di 01 638 xx xx. > > --- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > -- Jeremy Haile [EMAIL PROTECTED] --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] Castor XML :Using Marshaller

2004-03-08 Thread Jeremy Haile
> > > > > ------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > -- Jeremy Haile [EMAIL PROTECTED] --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

[castor-dev] NullPointerException during validation

2004-03-04 Thread Jeremy Haile
rator] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [configurator] at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:583) [configurator] at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:491) -- Jeremy Haile [EMAIL PROTECTED] -

Re: [castor-dev] Re: Collections only saving first element

2004-03-03 Thread Jeremy Haile
each element that gets added (that thing called encapsulation) Can I make castor use an addXXX method instead? Jeremy On Wed, 03 Mar 2004 16:31:26 -0500, "Jeremy Haile" <[EMAIL PROTECTED]> said: > > To follow up more debug information: It appears that Castor IS so

Re: [castor-dev] Re: Collections only saving first element

2004-03-03 Thread Jeremy Haile
processing which causes my application to fail if not performed. Also, my instance variables have private access. My set methods of course have public access. Jeremy On Wed, 03 Mar 2004 15:18:24 -0500, "Jeremy Haile" <[EMAIL PROTECTED]> said: > > By the way,

[castor-dev] Re: Collections only saving first element

2004-03-03 Thread Jeremy Haile
By the way, I am using 0.9.5.3 rc2. On Wed, 03 Mar 2004 15:11:32 -0500, "Jeremy Haile" <[EMAIL PROTECTED]> said: > I have several collections that are only saving the first element in a > set. My field type is a java.util.Set. When castor parses the XML file, >

Re: [castor-dev] Unmarshall Error

2004-02-26 Thread Jeremy Haile
handler="org.exolab.castor.mapping.StringBufferFieldHandler"> > > > > >handler="org.exolab.castor.mapping.BitSetFieldHandler" > required="false

Re: [castor-dev] FieldHandlers and collections

2004-02-26 Thread Jeremy Haile
tement, since that would only handle the first item from > the enumeration. > > --Keith > > Jeremy Haile wrote: > > > > Thanks Balaji! > > > > Keith, should this be integrated into CVS? > > > > Jeremy > > > > On Tue, 24 Feb 2004 1

Re: [castor-dev] java.util.Map support

2004-02-25 Thread Jeremy Haile
; type="string" handler="MyHandler" node="element" @castor.map-value name="item.value" type="string" handler="MyHandler" node="element" On Wed, 25 Feb 2004 16:32:37 -0500, "Jeremy Haile" <[EMAIL PROTECTED]> said: >

Re: [castor-dev] java.util.Map support

2004-02-25 Thread Jeremy Haile
t > > away, as both the key and value are now output by default. > > > > When using a mapping file you need to specify this by using Castor's > > built-in wrapper: > > > > Try the following: > > > > > collection="map"/> > > > > You don't need to put MapItem&#

Re: [castor-dev] Marshalling the type Calendar?

2004-02-19 Thread Jeremy Haile
> > received. > > > > > > --- > > > 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 > > e-Mail Notice: This communication may contain sensitive information. If you > > are not the intended recipient, or believe that you have received this > > communication in error, do not print, copy, retransmit, disseminate, or > > otherwise use the information contained herein for any purpose. Please > > alert the sender that you have received this message in error and delete the > > copy that you received. > > > > --- > > 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 > -- Jeremy Haile [EMAIL PROTECTED] --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] Marshalling the type Calendar?

2004-02-19 Thread Jeremy Haile
; out Calendar a bit later and see if I can spot the problem. > > thanks, > > --Keith > > > Jeremy Haile wrote: > > > > Keith, > > > > I tried implementing the FieldHandlerFactory method on the CVS version > > about a month ago with ja

[castor-dev] Unmarshalling xml files with more than one objects

2004-02-11 Thread Jeremy Haile
hat are the changes to made to the > mapping file to get the unmarshalling done. This would be of > great help to me. Also, pls let me know in case there is any > other approach that you have used to accomplish this. > > Thanks in advance. > > Rgds, > brahma -- Jeremy Haile

Re: [castor-dev] java.util.Date: unmarshall problem

2004-02-04 Thread Jeremy Haile
.Date. > Your sugestion was my first approach but due to a Castor bug it was not > possible to do use it. > Check http://hypermail.linklord.com/castor-dev/2003/Nov/1731.html for > more details. > > Regards, > > Renato > > Jeremy Haile wrote: > >

Re: [castor-dev] java.util.Date: unmarshall problem

2004-02-04 Thread Jeremy Haile
gt; > > Munuswamy-Ramu Senthilkumar wrote: > > > >> Hi renato, > >> > >> > >> I am facing same problem. > >> > >> Do you any idea to solve it? > >> > >> Let me know. > >> > >> > >> Thanks & Regards, > >> senthil > >> > >> > >> > > > > > > > > > > > > --- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > -- Jeremy Haile [EMAIL PROTECTED] --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] Access to CVS server

2004-02-04 Thread Jeremy Haile
----- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > -- Jeremy Haile [EMAIL PROTECTED] --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

[castor-dev] Calling private/protected methods

2004-01-28 Thread Jeremy Haile
od access level and call the method anyway. I can think of many instances where this case would occur and think it should definitely be at least an option. What has the past thought been on this feature? Any chance it could be added soon? Jeremy -- Jeremy Haile [

Re: [castor-dev] GeneralizedFieldHandler and Collections

2004-01-28 Thread Jeremy Haile
> Unmarshal: > > > Unmarshaller unm = new Unmarshaller(...); >unm.setResolver(cdr); >Object root = unm.unmarshal(reader); > > Hope that helps, > > --Keith > > > > Jeremy Haile wrote: > > > > I'm new to the list, so I

Re: [castor-dev] Multiple objects in multiple files

2004-01-28 Thread Jeremy Haile
name, etc.)? When I experimented with this, Castor output an xsi:type attribute for every object and named every object the same thing (e.g. "container"), which is unacceptable in my case. Thanks! On Wed, 28 Jan 2004 12:51:52 -0600, "Keith Visco" <[EMAIL PROTECTED]&

[castor-dev] Multiple objects in multiple files

2004-01-28 Thread Jeremy Haile
g throughout my document. Thanks, Jeremy Haile [EMAIL PROTECTED] -- Jeremy Haile [EMAIL PROTECTED] --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

[castor-dev] GeneralizedFieldHandler and Collections

2004-01-28 Thread Jeremy Haile
as this is a fatal error... //todo Create a more elegant error reporting mechanism for field support throw new RuntimeException( "Host name is not a legal value: '" + hostName + "'" ); } return ine