Thanks, Radu,
The information you provide is very useful,
I should use SchemaTypeElementSequencer instead.




Radu Preotiuc-Pietro wrote:
You can use SchemaTypeVisitorImpl without using the generated sources,
but classes under "impl" in the xmlbeans package hierarchy are
implementation packages, designed to support the functionality of
XMLBeans, not for direct use.

Check out the (intented for direct use)
org.apache.xmlbeans.SchemaTypeElementSequencer which I think will do
what you want if I understand the use case correctly. Note that this
does not have backtrack capabilities but should be fast enough to
basically replay the elements everytime you would want to backtrack.

Also, IANAL, but I think your understanding of the Apache license is
correct.

Radu

-----Original Message-----
From: Lendle [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 8:03 PM
To: [email protected]
Subject: add backtrack ability to SchemaTypeVisitorImpl


Hi!
May I use SchemaTypeVisitorImpl only without using xmlbean generated
sources? This is because I want to give users a hint about what element
can be inserted at some location before he/she really insert something.
I've noticed that SchemaTypeVisitorImpl already have enough information
about the correct element sequence under a schema type. I think I can
use SchemaTypeVisitorImpl and possibly add backtrack functionality to
this class for convenience. However, since many information needed are
stored in private members, I cannot extend this class but have to
directly modify the source. Is this a workable choice? Furthermore, if I
modified the source code of SchemaTypeVisitorImpl.java and use the
modification with other xmlbean source codes in a non-open source,
commercial product, what I have to do is to include a file indicating
the modification. Is my understanding to the apache style 2.0 license
correct? If not, please correct me.

Thanks!!

Sincerely,
Lendle Tseng


---------------------------------------------------------------------
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]





--
中央研究院資訊科學所415實驗室 研究助理 曾俊雄
電話: 02-27883799轉1458
行動電話: 0920855532


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

Reply via email to