Class ECPDiagnostician
- java.lang.Object
-
- org.eclipse.emf.ecp.diagnostician.ECPDiagnostician
-
public final class ECPDiagnostician extends java.lang.Object
TheECPDiagnostician
will invoke the registeredECPValidators
.- Author:
- jfaltermeier
-
-
Field Summary
Fields Modifier and Type Field Description static ECPDiagnostician
INSTANCE
The instance of theECPDiagnostician
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canValidate(org.eclipse.emf.ecore.EObject eObject)
Whether the diagnostician can validate the given object.org.eclipse.emf.common.util.Diagnostic
validate(org.eclipse.emf.ecore.EObject eObject)
Validates the givenEObject
.org.eclipse.emf.common.util.Diagnostic
validate(org.eclipse.emf.ecore.EObject eObject, java.util.Map<?,?> contextEntries)
Validates the givenEObject
.
-
-
-
Field Detail
-
INSTANCE
public static final ECPDiagnostician INSTANCE
The instance of theECPDiagnostician
.
-
-
Method Detail
-
validate
public org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EObject eObject)
Validates the givenEObject
.- Parameters:
eObject
- the object to validate.- Returns:
- the diagnostic
-
validate
public org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EObject eObject, java.util.Map<?,?> contextEntries)
Validates the givenEObject
.- Parameters:
eObject
- the object to validate.contextEntries
- context entries that may be needed for the validation- Returns:
- the diagnostic
-
canValidate
public boolean canValidate(org.eclipse.emf.ecore.EObject eObject)
Whether the diagnostician can validate the given object.- Parameters:
eObject
- the object to check- Returns:
true
if a validator is registered for the object,false
otherwise
-
-