Class OmlValidator2

java.lang.Object
io.opencaesar.oml.util.OmlValidator2

public final class OmlValidator2 extends Object
The Validator2 for the model. It adds additional semantic rules that go beyond the EMF syntax rules.
  • Field Details

    • INSTANCE

      public static final OmlValidator2 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 validate
      diagnostics - The diagnostics found during validation
      context - An object to object context map used in producing the error messages
      Returns:
      True if the element is valid; False otherwise