Class ECPValidator

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator

        org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate
    • Field Summary

      • Fields inherited from interface org.eclipse.emf.ecore.EValidator

        MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
    • Constructor Summary

      Constructors 
      Constructor Description
      ECPValidator()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.emf.common.util.Diagnostic createDiagnostic​(int severity, java.lang.String source, int code, java.lang.String message, java.lang.Object[] data, java.util.Map<java.lang.Object,​java.lang.Object> context)
      Creates a diagnostic.
      protected org.eclipse.emf.common.util.Diagnostic createDiagnostic​(java.lang.String source, int code, java.lang.String message, java.lang.Object[] data, java.util.Map<java.lang.Object,​java.lang.Object> context, java.util.List<org.eclipse.emf.common.util.Diagnostic> childDiagnostics)
      Creates a diagnostic with child diagnostics.
      abstract java.util.Set<org.eclipse.emf.ecore.EClassifier> getValidatedEClassifier()
      Returns the EClassifiers which can be validated.
      boolean validate​(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validate​(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validate​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      • Methods inherited from class java.lang.Object

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

      • ECPValidator

        public ECPValidator()
    • Method Detail

      • getValidatedEClassifier

        public abstract java.util.Set<org.eclipse.emf.ecore.EClassifier> getValidatedEClassifier()
        Returns the EClassifiers which can be validated.
        Returns:
        the eclassifiers
      • validate

        public boolean validate​(org.eclipse.emf.ecore.EObject eObject,
                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                java.util.Map<java.lang.Object,​java.lang.Object> context)
        Specified by:
        validate in interface org.eclipse.emf.ecore.EValidator
        See Also:
        EValidator.validate(org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
      • validate

        public boolean validate​(org.eclipse.emf.ecore.EClass eClass,
                                org.eclipse.emf.ecore.EObject eObject,
                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                java.util.Map<java.lang.Object,​java.lang.Object> context)
        Specified by:
        validate in interface org.eclipse.emf.ecore.EValidator
        See Also:
        EValidator.validate(org.eclipse.emf.ecore.EClass, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
      • validate

        public boolean validate​(org.eclipse.emf.ecore.EDataType eDataType,
                                java.lang.Object value,
                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                java.util.Map<java.lang.Object,​java.lang.Object> context)
        Specified by:
        validate in interface org.eclipse.emf.ecore.EValidator
        See Also:
        EValidator.validate(org.eclipse.emf.ecore.EDataType, java.lang.Object, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
      • createDiagnostic

        protected org.eclipse.emf.common.util.Diagnostic createDiagnostic​(int severity,
                                                                          java.lang.String source,
                                                                          int code,
                                                                          java.lang.String message,
                                                                          java.lang.Object[] data,
                                                                          java.util.Map<java.lang.Object,​java.lang.Object> context)
        Creates a diagnostic.
        Parameters:
        severity - the severity
        source - the source of the validation
        code - unique code
        message - the message describing the validation error
        data - the data.
        context - the context
        Returns:
        a diagnostic with the given attributes
      • createDiagnostic

        protected org.eclipse.emf.common.util.Diagnostic createDiagnostic​(java.lang.String source,
                                                                          int code,
                                                                          java.lang.String message,
                                                                          java.lang.Object[] data,
                                                                          java.util.Map<java.lang.Object,​java.lang.Object> context,
                                                                          java.util.List<org.eclipse.emf.common.util.Diagnostic> childDiagnostics)
        Creates a diagnostic with child diagnostics.
        Parameters:
        source - the source of the validation
        code - unique code
        message - the message describing the validation error
        data - the data.
        context - the context
        childDiagnostics - the child diagnostics
        Returns:
        a diagnostic with the given attributes