XmlObject.changeType(SchemaType)

which returns an XmlObject which you can cast to B: 

B referenceToB = (B) referenceToA.changeType(B.type);

Radu

> -----Original Message-----
> From: Stefan Lischke [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 14, 2008 3:15 AM
> To: [email protected]
> Subject: casting of XmlObjects
> 
> Hi,
> 
> I have a type A and a type B which extends A and adds other 
> attributes to it.
> 
> In the code i have a reference to the XmlObject of A.
> 
> How can i "cast" this to the XmlObject of B to add further attributes?
> 
> Any ideas?
> 
> 
> Thanx in advance
> 
> Stefan
> 

Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to