public class ViewModelValidationDelegate extends ValidationServiceDelegate
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewModelValidationDelegate.Provider
Implementation of the validation delegate provider for view model validation.
|
NULL| Constructor and Description |
|---|
ViewModelValidationDelegate()
Initializes me.
|
| Modifier and Type | Method and 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.
|
unload, validateprotected org.eclipse.emf.ecore.resource.ResourceSet loadModel(org.eclipse.core.resources.IFile file)
throws IOException
ValidationServiceDelegateloadModel in class ValidationServiceDelegatefile - the model file to loadIOException - on failure to load the fileprotected org.eclipse.emf.ecore.EObject getModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ValidationServiceDelegategetModel in class ValidationServiceDelegateresourceSet - the loaded resource setnull if there is noneValidationServiceDelegate.loadModel(IFile)protected void configure(ValidationService validationService, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.ecore.EObject model)
ValidationServiceDelegatemodel.configure in class ValidationServiceDelegatevalidationService - the validation service to configureresourceSet - the resource set in which it will validate the modelmodel - the model object to be validatedCopyright © 2019. All rights reserved.