public abstract class LoadableConstraintProvider
extends XmlConstraintProvider
Pending improvement of the EMFv API:
Two ConstraintProviders should be specified for the one Category for the org.eclipse.emf.validation.constraintProviders extension point.
The first ConstraintProvider default-classed XmlConstraintProvider may have a single placeholder constraint that provides the initial content of the Model Validation Constraints Preference page.
The second ConstraintProvider deriving from LoadableConstraintProvider should have a Path-languaged constraint with an XML path parameter locating the model source of the loadable constraints. These will be loaded by the first validation run and repopulate the Preference page with their content.
See org.eclipse.ocl.examples.xtext.tests/plugin.xml for an example.
Derived implementations such as UMLProfileConstraintProvider should implement load to load the modeled constraints.
Modifier and Type | Method and Description |
---|---|
static OCL |
getOCL() |
void |
setInitializationData(IConfigurationElement config,
String propertyName,
Object data) |
String |
toString() |
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.