Class ViewModelValidationDelegate
- java.lang.Object
-
- org.eclipse.emfforms.ide.builder.ValidationServiceDelegate
-
- org.eclipse.emfforms.ide.internal.builder.ViewModelValidationDelegate
-
- All Implemented Interfaces:
ValidationDelegate
public class ViewModelValidationDelegate extends ValidationServiceDelegate
The validation delegate for view models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViewModelValidationDelegate.ProviderImplementation of the validation delegate provider for view model validation.
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.ide.builder.ValidationDelegate
NULL
-
-
Constructor Summary
Constructors Constructor Description ViewModelValidationDelegate()Initializes me.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(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 themodel.protected org.eclipse.emf.ecore.EObjectgetModel(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.ResourceSetloadModel(org.eclipse.core.resources.IFile file)Load a model into a resource set.-
Methods inherited from class org.eclipse.emfforms.ide.builder.ValidationServiceDelegate
unload, validate
-
-
-
-
Method Detail
-
loadModel
protected org.eclipse.emf.ecore.resource.ResourceSet loadModel(org.eclipse.core.resources.IFile file) throws java.io.IOExceptionDescription copied from class:ValidationServiceDelegateLoad a model into a resource set.- Overrides:
loadModelin classValidationServiceDelegate- Parameters:
file- the model file to load- Returns:
- the resource set into which it is loaded
- Throws:
java.io.IOException- on failure to load thefile
-
getModel
protected org.eclipse.emf.ecore.EObject getModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Description copied from class:ValidationServiceDelegateObtain the model object to be validated from the loaded resource set.- Overrides:
getModelin classValidationServiceDelegate- Parameters:
resourceSet- the loaded resource set- Returns:
- the model object to validate, or
nullif there is none - See Also:
ValidationServiceDelegate.loadModel(IFile)
-
configure
protected void configure(ValidationService validationService, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.ecore.EObject model)
Description copied from class:ValidationServiceDelegateConfigure the validation service with constraint providers, filters, or whatever else is necessary for complete and correct validation of themodel.- Overrides:
configurein classValidationServiceDelegate- Parameters:
validationService- the validation service to configureresourceSet- the resource set in which it will validate themodelmodel- the model object to be validated
-
-