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
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
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
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
>
> >
>
> -------
> 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
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]
-
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
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,
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,
>
handler="org.exolab.castor.mapping.StringBufferFieldHandler">
>
>
>
>
>handler="org.exolab.castor.mapping.BitSetFieldHandler"
> required="false
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
; 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:
>
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
> > 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
; 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
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
.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:
>
>
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
-----
> 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
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
[
> 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
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]&
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
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
24 matches
Mail list logo