public class PivotEObjectValidator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PivotEObjectValidator.ValidationAdapter
A ValidationAdapter is installed in the ResourceSet of applications that register for additional
PIvot-defined constraints.
|
Constructor and Description |
---|
PivotEObjectValidator(List<Model> complementingModels) |
Modifier and Type | Method and Description |
---|---|
static ResourceSet |
getResourceSet(EClassifier eClassifier,
Object object,
DiagnosticChain diagnostics)
Return the user's ResourceSet, preferably as a data element of the diagnostics, corresponding to
the original validation context, else from the object else from the eClassifier.
|
static void |
install(EPackage ePackage)
Deprecated.
|
static void |
install(EPackage ePackage,
List<Model> complementingModels) |
static PivotEObjectValidator.ValidationAdapter |
install(ResourceSet resourceSet,
EnvironmentFactoryInternal environmentFactory)
Install Complete OCL validation support in resourceSet for metamodelManager.
|
boolean |
validate(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Overriden to intercept the validation of an EObject to add the additional Pivot-defined validation.
|
boolean |
validate(EDataType eDataType,
Object value,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Overriden to intercept the validation of an EDataType value to add the additional Pivot-defined validation.
|
boolean |
validate(EObject eObject,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
public static PivotEObjectValidator.ValidationAdapter install(ResourceSet resourceSet, EnvironmentFactoryInternal environmentFactory)
@Deprecated public static void install(EPackage ePackage)
public static ResourceSet getResourceSet(EClassifier eClassifier, Object object, DiagnosticChain diagnostics)
public boolean validate(EObject eObject, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object,Object> context)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.