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 163851

Summary: Inconsistencies in netbeans xml catalog representation
Product: xml Reporter: Vitaly Bychkov <lativ>
Component: CatalogAssignee: Vitaly Bychkov <lativ>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Vitaly Bychkov 2009-04-28 09:23:29 UTC
There are several inconsistencies in netbeans xml catalog representation:

org.netbeans.modules.xml.catalog.CatalogEntry - is a wrapper for the externally defined CatalogReaders.
1. But CatalogEntry in some cases use CatalogReader to get systemId (see CatalogEntry#getSystemId) in some cases don't
use: (see CatalogEntry#getSystemIdValue())
2. CatalogEntry uses systemId as an URI of the resource location, but it is not declared anywhere. At the same time
CatalogReader provides resolveURI method. Similar regarding CatalogEntryNode#getCookie - constructing ViewCookie the
systemId is used as an URI.

3. org.netbeans.modules.xml.catalog.spi.CatalogReader doesn't provide clear javadoc which is results in absolutely
inconsistent implementations which is the source of the problem with using registered catalogs (for example - issue
http://www.netbeans.org/issues/show_bug.cgi?id=163721 ...)

4. there are different approaches in using SCHEMA: or SYSTEM: prefixes in CatalogReaders and CatalogEntry.
Some catalogs don't use it at all (org.netbeans.modules.websvc.core.jaxws.WebServicesSchemaCatalog), some use it as
publicId(org.netbeans.modules.j2ee.persistence.unit.PersistenceCatalog),CatalogEntry removes these prefixes to define
systemId...
Comment 1 Sergey Lunegov 2009-04-28 09:25:54 UTC
Maybe will postpone for the next release.