[xsd-users] equivalent of @XmlSeeAlso in code synthesis

Boris Kolpackov boris at codesynthesis.com
Thu Oct 18 05:29:15 EDT 2012


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



More information about the xsd-users mailing list