Class ECPDiagnostician


  • public final class ECPDiagnostician
    extends java.lang.Object
    The ECPDiagnostician will invoke the registered ECPValidators.
    Author:
    jfaltermeier
    • 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 given EObject.
      org.eclipse.emf.common.util.Diagnostic validate​(org.eclipse.emf.ecore.EObject eObject, java.util.Map<?,​?> contextEntries)
      Validates the given EObject.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • validate

        public org.eclipse.emf.common.util.Diagnostic validate​(org.eclipse.emf.ecore.EObject eObject)
        Validates the given EObject.
        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 given EObject.
        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