Class ViewModelValidationDelegate

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ViewModelValidationDelegate.Provider
      Implementation of the validation delegate provider for view model validation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure​(ValidationService validationService, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.ecore.EObject model)
      Configure the validation service with constraint providers, filters, or whatever else is necessary for complete and correct validation of the model.
      protected org.eclipse.emf.ecore.EObject getModel​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      Obtain the model object to be validated from the loaded resource set.
      protected org.eclipse.emf.ecore.resource.ResourceSet loadModel​(org.eclipse.core.resources.IFile file)
      Load a model into a resource set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ViewModelValidationDelegate

        public ViewModelValidationDelegate()
        Initializes me.
    • Method Detail

      • loadModel

        protected org.eclipse.emf.ecore.resource.ResourceSet loadModel​(org.eclipse.core.resources.IFile file)
                                                                throws java.io.IOException
        Description copied from class: ValidationServiceDelegate
        Load a model into a resource set.
        Overrides:
        loadModel in class ValidationServiceDelegate
        Parameters:
        file - the model file to load
        Returns:
        the resource set into which it is loaded
        Throws:
        java.io.IOException - on failure to load the file
      • configure

        protected void configure​(ValidationService validationService,
                                 org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                 org.eclipse.emf.ecore.EObject model)
        Description copied from class: ValidationServiceDelegate
        Configure the validation service with constraint providers, filters, or whatever else is necessary for complete and correct validation of the model.
        Overrides:
        configure in class ValidationServiceDelegate
        Parameters:
        validationService - the validation service to configure
        resourceSet - the resource set in which it will validate the model
        model - the model object to be validated