[xsd-users] equivalent of @XmlSeeAlso in code synthesis
Prakash, Arul
Arul.Prakash2 at rsa.com
Wed Nov 28 05:46:38 EST 2012
Hi Boris,
As you have mentioned I tried "dynamic_cast". But it didn't work,I also
found this,it says whatever you have mentioned is not correct.
http://www.cplusplus.com/doc/tutorial/typecasting/
pls check out "dynamic casting".
I ll send another mail clearly explaining my scenario with an example.
Thanks
Arul
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Thursday, October 18, 2012 2:59 PM
To: Prakash, Arul
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] equivalent of @XmlSeeAlso in code synthesis
Hi Arul,
Prakash, Arul <Arul.Prakash2 at rsa.com> writes:
> Is there any equivalent for @XmlSeeAlso which is present in java files
> generated by xjc in codesynthesis.
No. I also don't see why we would need one.
> I have a case in which I want to type cast a base class variable to
> its derived class, which is possible in java due to the presence of
> @XmlSeeAlso which lists the derivedclasses of the baseclass and thus
> makes it known to the baseclass.
It is possibly in C++ without @XmlSeeAlso:
Base& b = ...
Derived* d = dynamic_cast<Derived*> (&b);
if (d != 0)
{
// b is Derived.
}
else
{
// b is not Derived.
}
Boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7465 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20121128/2069f9ce/smime.bin
More information about the xsd-users
mailing list