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, validate
protected org.eclipse.emf.ecore.resource.ResourceSet loadModel(org.eclipse.core.resources.IFile file) throws IOException
ValidationServiceDelegate
loadModel
in class ValidationServiceDelegate
file
- the model file to loadIOException
- on failure to load the file
protected org.eclipse.emf.ecore.EObject getModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ValidationServiceDelegate
getModel
in class ValidationServiceDelegate
resourceSet
- 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)
ValidationServiceDelegate
model
.configure
in class ValidationServiceDelegate
validationService
- the validation service to configureresourceSet
- the resource set in which it will validate the model
model
- the model object to be validatedCopyright © 2019. All rights reserved.