unscribe me please


                                                                                
 
             Nick Stuart                                                        
 
             <[EMAIL PROTECTED]>                                                
 
                                                                              
To 
             05/04/2005 11:32 AM         [email protected]                
 
                                                                              
cc 
                                                                                
 
              Please respond to                                          
Subject 
             [EMAIL PROTECTED]         Fwd: [castor-dev] Question about        
                    .org                 current mapping.xsd schema             
 
                                                                                
 
                                                                                
 
                                                                                
 
                                                                                
 
                                                                                
 
                                                                                
 




Ok, but I also should have mentioned that I'm working the straight
objects generated by the xsd here outside of castor itself. Currently
I dont think I have a way to generate the ClassMapping itself and work
with that. I am generating the schema Class object, and tried putting
that in there too, to no avail.

Also, when marshalling I simply call mapping.unmarshall(writer). So
all of the stuff here is source-generated.

So the question I guess is, can you use the mapping.xsd gnerated files
by themselves to generate a valid mapping file. I noticed that depends
is the same as extends but have not tried that out yet, but assume I
will run into the same type of thing.

Any ideas? or perhaps need some more info from my end?

-Nick

On 5/4/05, Bruce Snyder <[EMAIL PROTECTED]> wrote:
> On 5/4/05, Nick Stuart <[EMAIL PROTECTED]> wrote:
> > Ok, so I'm using the generated source from the current mapping.xsd
> > schema for a little project here (will let you all know more a bit
> > later) and am confused about one issue. The generated source has the
> > following for the 'extends' attribute in the schema Class object.
> >
> > public void setExtends(java.lang.Object _extends)
> >     {
> >         this._extends = _extends;
> >     }
> >
> > public java.lang.Object getExtends()
> >     {
> >         return this._extends;
> >     }
> >
> > And my question is, what exactly is this expecting? A class name? A
> > Class object? An actual object of the right type?!?
> >
> > In the process of trying to unmarshall a castor Class object that is
> > supposed to have an extends attribute added I either get:
> >
> > "Unable to resolve ID for instance of class 'test.beans.Person' due to
> > the following error: No identity descriptor available"
> >
> > When I try an actual person Object, Or the test.beans.Person is
> > switched to 'java.llang.String' if I try just the name
> >
> > Or I get
> >
> > "The marshaller cannot marshal/unmarshal types of Void.class,
> > Class.class or Object.class"
> >
> > if I just try the actual java.lang.Class.
> >
> > So, what does this thing accept? It takes an Object type, I've tried
> > everything, do I need to write a custom map to fix this? Sorry for
> > being a newb on the XML side, haven't had to deal with it much yet.
> > :)
>
> Nick,
>
> Based on what I see in the MappingRoot and MappingRootDescriptor, I
> believe that the setExtends() method is expecting an instance of
> org.exolab.castor.mapping.xml.ClassMapping.
>
> Bruce
> --
> perl -e 'print
unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> The Castor Project
> http://www.castor.org/
>
> Apache Geronimo
> http://geronimo.apache.org/
>





This message contains information from Equifax Inc. which may be confidential 
and
privileged.  If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that such
actions are prohibited.  If you have received this transmission in error, please
notify by e-mail [EMAIL PROTECTED]

Reply via email to