The unsynchronized is a property of the xml store, so anything that is part of 
that store will use it. 

setXXX methods make copies of the original objects, so they and addNewXXX 
methods create new objects inside the original store. To answer your questions, 
in both cases obj and its children will use the UNSYNCHRONIZED property. Note 
that concreteObj might not have the option, depending on how it was initially 
created.

Cezar

> -----Original Message-----
> From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 28, 2006 3:12 AM
> To: [email protected]
> Subject: AW: What does XmlOptions.UNSYNCHRONIZED mean?
> 
> Hi Cezar,
> 
> thank you for the answer.
> I have another question:
> 
> When I create a XmlObject with options and then add a new subelement to
> it, will the subelement inherit the options?
> E.g.
> 
> XmlOptions opt = new XmlOptions();
> opt.setUnsynchronized();
> MyObjectType obj = MyObjectType.Factory.newInstance( opt );
> MySubObjectType subObj = obj.addNewSubObjectType();
> 
> Will subObj now use the same options? There is no addNewSubObjectType()
> method with a XmlOptions as parameter.
> 
> 
> And another one:
> What happens when I replace an abstract with a concrete type?
> 
> E.g.
> 
> MyAbstractSubObjectType abstractObj = obj.addNewAbstractSubObjectType();
> MyAbstractSubObjectType concreteObj = getSomehowMyConcreteObject();
> 
> abstractObj.set( concretObj );
> 
> 
> Will the child of obj now use the options it maybe inherited from obj, or
> will it use the options of the conrete object?
> 
> 
> thanks,
> Christoph
> 
> 
> ----Ursprüngliche Nachricht----
> Von: Cezar Andrei [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 27. April 2006 18:16
> An: [email protected]
> Betreff: RE: What does XmlOptions.UNSYNCHRONIZED mean?
> 
> > The answer it's b), you have to pass the option when you
> > first create a
> > new xml store, which happens when you create a new XmlObject, through
> > newInstance() or parse(). If unsynchronized option is used, the
> > following access to the store will be unsynchronized.
> >
> > Cezar
> >
> >> -----Original Message-----
> >> From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, April 27, 2006 9:29 AM
> >> To: [email protected]
> >> Subject: What does XmlOptions.UNSYNCHRONIZED mean?
> >>
> >> Hi,
> >>
> >> could someone explain what XmlOptions.UNSYNCHRONIZED actually does?
> >> When do I have to specify this option:
> >> a) when I compile the schema
> >> or
> >> b) when I created new XMLbeans instances. I.e.:
> >>
> >> XmlOptions opt = new XmlOptions();
> >> opt.setUnsynchronized();
> >> XmlObject obj = MyObjectType.Factory.newInstance( opt );
> >>
> >> Is my instance now unsynchronized or not?
> >>
> >>
> >> thanks,
> >> Christoph
> >>
> >>
> >>
> >>
> > ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ______________________________________________________________
> > _________ 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]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

_______________________________________________________________________
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