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/