This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 113559 - deprecate creation of non-editable ModelSource APIs
Summary: deprecate creation of non-editable ModelSource APIs
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: XAM (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 00:03 UTC by Samaresh Panda
Modified: 2007-08-23 11:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2007-08-23 00:03:39 UTC
The boolean "editable" in the creation of ModelSource is confusing and creates more problems to the consumers of this
API. It should get removed from the APIs and instead the tool will create RO models when appropriate.

All the ModelSource will be created as editable=true for consumers. There are certain use-cases when the retriever code
will create ModelSource internally as Read-Only.

The following APIs will get deprecated.

class: org.netbeans.modules.xml.xam.ModelSource
public ModelSource(Lookup lookup) //remove editable 

class: org.netbeans.modules.xml.retriever.catalog.Utilities
public static ModelSource getModelSource(FileObject bindingHandlerFO) //remove editable 
public static ModelSource createModelSource(FileObject thisFileObj) throws CatalogModelException //remove editable
Comment 1 Martin Grebac 2007-08-23 11:11:18 UTC
I think this is a very important enhancement, because without it, the api leads to incorrect usages and subsequent
exceptions, thus raising priority.