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: user@xmlbeans.apache.org
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: user@xmlbeans.apache.org
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]