This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 205956 - SML validator should provide API for accessing the model
Summary: SML validator should provide API for accessing the model
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Whiteman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 12:42 EDT by Valentina Popescu CLA
Modified: 2012-01-03 13:47 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valentina Popescu CLA 2007-10-10 12:42:15 EDT
The current SML validation implementation offers only the capability of reporting errors as a document or set of documents is validated.

As a next step, the implementation should provide a set of API's for accessing the underlying data model as well as for running the evaluation in separate steps.

The scenarios we should be able to cover :
- be able to validate in memory objects as well as file system documents.
A parse()throws SMLExceptions API that takes as input a Path/String ( system file path )or InputStream
- be able to collect the parsing/validation errors and use them in custom scenarios ( the default approach if nothing is specified is to show the errors to the default console output; the user can overwrite this option and decide to not show the errors or show them in a different format or output)
- run only a subset of the validation steps. 
The user may want to run a schematron rule every time some data changes, without having to run the entire model validation. Need an API runSchematron(rule, Element(s) ) so that I can run a specific rule against a set of elements.
- API which allows binding a schematron rule with a set of documents, similar with what the IF ruleBindings element does.
Comment 1 Mark Weitzel CLA 2007-11-07 14:15:42 EST
Discussed at the Detroit F2F: +1
Moved to i9
http://wiki.eclipse.org/Talk:COSMOSF2F-08-Nov-07#2._Ensure_that_all_the_designs_for_i7_.2F_i8_.2F_i9_are_in_order
Comment 2 Valentina Popescu CLA 2008-01-15 14:42:47 EST
suggest moving this out of i9, until we have clear requirements from consumers on what to make available
Comment 3 Valentina Popescu CLA 2008-01-16 11:03:25 EST
Moving this enhancement to i10, as discussed during the 01/16 AG call
Comment 4 Valentina Popescu CLA 2008-03-03 12:42:49 EST
Ruth, I am moving this to you