Package io.opencaesar.oml.util
Class OmlValidator2
java.lang.Object
io.opencaesar.oml.util.OmlValidator2
The Validator2 for the model. It adds additional semantic rules that go beyond the EMF syntax rules.
-
Field Summary
-
Method Summary
-
Field Details
-
INSTANCE
The singleton instance of this class
-
-
Method Details
-
run
public boolean run(Element element, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) Validates the given Oml element by this validator's rules- Parameters:
element
- The element to validatediagnostics
- The diagnostics found during validationcontext
- An object to object context map used in producing the error messages- Returns:
- True if the element is valid; False otherwise
-