Class ValidationService

    • Constructor Detail

      • ValidationService

        public ValidationService​(IExcludedObjectsCallback callback)
        Constructor for the ECP ValidationService.
        Parameters:
        callback - to use
    • Method Detail

      • validate

        public java.util.Set<org.eclipse.emf.ecore.EObject> validate​(java.util.Collection<org.eclipse.emf.ecore.EObject> eObjects)
        Validates the given EObjects.
        Specified by:
        validate in interface IValidationService
        Parameters:
        eObjects - a collection of EObjects to be validated
        Returns:
        the set of affected elements
      • validate

        public java.util.Set<org.eclipse.emf.ecore.EObject> validate​(org.eclipse.emf.ecore.EObject eObject)
        Validates the given EObject.
        Specified by:
        validate in interface IValidationService
        Parameters:
        eObject - the EObject to be validated
        Returns:
        the set of affected elements
      • getDiagnostic

        public org.eclipse.emf.common.util.Diagnostic getDiagnostic​(java.lang.Object eObject)
        Returns the severity for the given EObject.
        Specified by:
        getDiagnostic in interface IValidationService
        Parameters:
        eObject - the EObject whose severity should be returned
        Returns:
        the severity for the given EObject
      • getRootDiagnostic

        public org.eclipse.emf.common.util.Diagnostic getRootDiagnostic()
        Returns the highest severity.
        Specified by:
        getRootDiagnostic in interface IValidationService
        Returns:
        the highest severity
      • getDefaultValue

        public org.eclipse.emf.common.util.Diagnostic getDefaultValue()
        Returns the default value for a cached node.
        The root value will be initialized with this value, too
        Specified by:
        getDefaultValue in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
        Returns:
        the default value for a cached tree node
      • createdCachedTreeNode

        public CachedTreeNode<org.eclipse.emf.common.util.Diagnostic> createdCachedTreeNode​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Creates a cached tree node.
        Specified by:
        createdCachedTreeNode in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
        Parameters:
        diagnostic - the value stored by the cached tree node
        Returns:
        the created node