Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-26 Thread Amita Vadhavkar
default true. User will need to pass FALSE option if this is not desired (For XML_LOAD_SCHEMA - Boolean.FALSE, for XML_LOAD_LAX_FORM Integer(0)) As the mail [Tuscany SDO] JIRA-1317 - questions/doubts says - ResolvableImpl - is not in working condition, no code changes done to it. Also

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-25 Thread Amita Vadhavkar
will assume default true. User will need to pass FALSE option if this is not desired (For XML_LOAD_SCHEMA - Boolean.FALSE, for XML_LOAD_LAX_FORM Integer(0)) As the mail [Tuscany SDO] JIRA-1317 - questions/doubts says - ResolvableImpl - is not in working condition, no code changes done to it. Also

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-22 Thread Frank Budinsky
will assume default true. User will need to pass FALSE option if this is not desired (For XML_LOAD_SCHEMA - Boolean.FALSE, for XML_LOAD_LAX_FORM Integer(0)) As the mail [Tuscany SDO] JIRA-1317 - questions/doubts says - ResolvableImpl - is not in working condition, no code changes done

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-22 Thread Amita Vadhavkar
default true. User will need to pass FALSE option if this is not desired (For XML_LOAD_SCHEMA - Boolean.FALSE, for XML_LOAD_LAX_FORM Integer(0)) As the mail [Tuscany SDO] JIRA-1317 - questions/doubts says - ResolvableImpl - is not in working condition, no code changes done to it. Also, there is a mail

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread Amita Vadhavkar
Some more questions- 8) are these the only ones? what should be int value to make it ON/OFF? currently no matter what it is ON, like I put a \n in a attribute value and loaded in DO and checked the value there, it was always preserving \n /** * Line Break String such as \n, \r\n, \r and ,

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread kelvin goodson
Hi Amita, I think we must resort to the mailing list since IRC is failing us, so I'm going to work through the issues and post here as I go. It won't be as interactive as IRC ought to be, but it will be better than the reality of IRC :-( Regards, kelvin. On 21/06/07, Amita Vadhavkar [EMAIL

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread kelvin goodson
Amita, I'm going to tackle your questions 1 by 1 On 19/06/07, Amita Vadhavkar [EMAIL PROTECTED] wrote: Hi, In attempt to analyze JIRA-1317, I had some questions and would like to get some points clear. 1)Tuscany xmlHelperImpl have load() method where options can be passed in. Why save()

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread kelvin goodson
snip/ 2)Why ResolvableImpl is in tuscany-sdo-lib, should it not be in tuscany-sdo-impl? As this class is in tuscany-sdo-lib and not tuscany-sdo-impl, it can not make use of options implementation in tuscany-sdo-impl, as these impl classes are not visible in tuscany-sdo-lib. snip/ Frank

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread kelvin goodson
3)What is meaning of below code in XMLDocumentImpl? if (options instanceof Map) { Class resourceFactoryClass = (Class)((Map)options).get(GENERATED_LOADER); if (resourceFactoryClass != null) { try { Object resourceFactory =

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread kelvin goodson
4)To provide code fix, code will change in (this is what I have thought so far) *HelperProviderBase-HelperProviderImpl-HelperContextImpl - constructor to have options, *XMLHelperImpl-to have member defaultOptions. *tuscany-sdo-lib -SDOUtil code - SDOUtil.setDefaultXMLOptions(options) A typical

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread kelvin goodson
Jumping to Q7 as I need to do something else now for a while and this is an easy one to answer. The SDOUtil in the impl project is what was being used before Frank started on his improvements to the structure. It still exists in deprecated sate to give people a chance to move over. The impl

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread Frank Budinsky
The options are moved to lib as well (see org.apache.tuscany.sdo.api.SDOHelper.XMLOptions). Implementation of the options needs to be in the impl project since they have EMF dependencies. Frank. kelvin goodson [EMAIL PROTECTED] wrote on 06/21/2007 05:23:56 AM: snip/ 2)Why ResolvableImpl

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread Amita Vadhavkar
Hi, I got the below mapping between Tuscany's XMLOptions and emf XMLResource Options Is this what is intended to be passed to in load method, i.e. is it expected to have this mapping and pass appropriate options set to the doLoad()? Also, we have multiple options for line formatting whereas there

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread Fuhwei Lwo
Hi Amita, Currently Tuscany SDO is not exposing all the EMF options for load and save. Also it's not 1:1 mapping from SDO to EMF options. That's why all the supported SDO options are described in the org.apache.tuscany.sdo.api.SDOHelper$XMLOptions. In order to add more options to SDO, you

Re: [Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-21 Thread Frank Budinsky
Amita, This part of your mapping is wrong: XML_SAVE_LINE_BREAK OPTION_FORMATTED XML_SAVE_INDENT OPTION_FORMATTED XML_SAVE_MARGIN OPTION_FORMATTED These options don't map to anything in EMF. They are Tuscany defined options which are processed in SDOXMLResourceImpl. Frank. Fuhwei Lwo [EMAIL

[Tuscany SDO] JIRA-1317 - questions/doubts

2007-06-19 Thread Amita Vadhavkar
Hi, In attempt to analyze JIRA-1317, I had some questions and would like to get some points clear. 1)Tuscany xmlHelperImpl have load() method where options can be passed in. Why save() methods with XMLDocument only have options supported and not for save() methods with DataObject? 2)Why