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 115188 - mime/file type based validator registration
Summary: mime/file type based validator registration
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Validation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 22:03 UTC by kiran_bhumana
Modified: 2007-09-17 11:24 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 kiran_bhumana 2007-09-10 22:03:47 UTC
Currently all the module's validators are being given a chance to validate on a model that we want to run validation on.
This could be enhanced to call the validators that register as applicable validators.

For instance, 
Based on mime-type / file extension type registration should be enforced, it will be a map "identifier" referring to a
"list of validators". So it is a lookup on the map and not iteration. So it avoids through iterating through irrelevant
modules. It also avoids calling each module and that module returning an empty if it doesn't understand this model. It
is a 2 fold. A map to avoid iterating unnecessarily, and calling only the right modules. 

I would think that we should do a similar thing to DataObject loader too. I know Dataloader is not part of enterprise,
but mention here for relevance.
Comment 1 Vladimir Yaroslavskiy 2007-09-17 11:22:40 UTC
Validation framework is being design and developed in xml.
If suggested approach is implemented, bpel specific validators
will be writtem if needed.

Reassigning to xml for further investigation.