-
-
Notifications
You must be signed in to change notification settings - Fork 201
EcoreDevelopmentStatus
Ecore generator, importer and validator are provided in Umple repository. However, they are at different stages of development. People want to work on Ecore should read and edit this wiki page.
The functionality is completed. It is under Eclipse project cruise.umple.validator
and the source code is called Validator_Ecore.ump
.
It simply uses the same validator as Ecore editor so that it should guarantee to product correct validation result. Therefore, the unit test case is mainly testing whether the result is matched when using different inputs (e.g. null String, non-XML String, Not existing file)
The validator supports 3 types of input:
-
java.lang.String
(String containing Ecore model) -
org.eclipse.emf.common.util.URI
(Link of the resource file) -
java.nio.file.Path
(Path locating a file in local file system)
The output is a boolean value indicating whether the specified item is valid or not.
- Include project cruise.umple.validator in Java Build Path
- Use
UmpleEcoreValidator.getInstance()
to get the instance of Ecore Validator - Call
UmpleEcoreValidator.validate()
to validate items
(Since it is not included in umplevalidator.jar
yet, you have to compile source code yourself.)
- Support error messages indicing why and which line get the error
- Wiki Home
- FAQ Frequently asked questions
- Examples
- Presentations
- PhilosophyAndVision
- Best practices for using Umple
- Publications and theses
- Tutorials
- Installing Eclipse plugin