Class InnerRangeBasedDiagnostic

  • All Implemented Interfaces:
    org.eclipse.emf.common.util.Diagnostic

    public class InnerRangeBasedDiagnostic
    extends org.eclipse.xtext.validation.RangeBasedDiagnostic
    Special wrapper for RangeBasedDiagnostic for creating Diagnostic by model object
    • Field Summary

      • Fields inherited from interface org.eclipse.emf.common.util.Diagnostic

        CANCEL, CANCEL_INSTANCE, ERROR, INFO, OK, OK_INSTANCE, WARNING
    • Constructor Summary

      Constructors 
      Constructor Description
      InnerRangeBasedDiagnostic​(int severity, String message, org.eclipse.emf.ecore.EObject source, int offset, int length, org.eclipse.xtext.validation.CheckType checkType, String issueCode, String[] issueData)
      Constructor
    • Method Summary

      • Methods inherited from class org.eclipse.xtext.validation.RangeBasedDiagnostic

        getData, getLength, getOffset, getSource, toString
      • Methods inherited from class org.eclipse.xtext.validation.AbstractValidationDiagnostic

        getCheckType, getChildren, getCode, getException, getIssueCode, getIssueData, getMessage, getSeverity, getSourceEObject, severityToStr
    • Constructor Detail

      • InnerRangeBasedDiagnostic

        public InnerRangeBasedDiagnostic​(int severity,
                                         String message,
                                         org.eclipse.emf.ecore.EObject source,
                                         int offset,
                                         int length,
                                         org.eclipse.xtext.validation.CheckType checkType,
                                         String issueCode,
                                         String[] issueData)
        Constructor
        Parameters:
        severity - type of creating diagnostic, can't be null
        message - message of creating diagnostic, can't be null
        object - annotated model object by creating diagnostic, can't be null
        offset - the starting offset of creating diagnostic in annotating resource
        length - the length of creating diagnostic in annotating resource
        checkType - actual validation type, can't be null
        issueCode - error code corresponding to creating diagnostic. This code can be used for creating quick fixes, can be null
        issueData - additional data attaching to diagnostic, can't be null