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 class
ViewModelValidationDelegate.Provider
Implementation 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 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 themodel
.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 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.IOException
Description copied from class:ValidationServiceDelegate
Load a model into a resource set.- Overrides:
loadModel
in 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:ValidationServiceDelegate
Obtain the model object to be validated from the loaded resource set.- Overrides:
getModel
in classValidationServiceDelegate
- Parameters:
resourceSet
- the loaded resource set- Returns:
- the model object to validate, or
null
if 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:ValidationServiceDelegate
Configure the validation service with constraint providers, filters, or whatever else is necessary for complete and correct validation of themodel
.- Overrides:
configure
in classValidationServiceDelegate
- Parameters:
validationService
- the validation service to configureresourceSet
- the resource set in which it will validate themodel
model
- the model object to be validated
-
-