Class Diagnostic


  • public class Diagnostic
    extends java.lang.Object
    This is basically a unification of org.eclipse.emf.common.util.Diagnostic and org.eclipse.emf.ecore.resource.Resource.Diagnostic.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Summary

      Constructors 
      Constructor Description
      Diagnostic​(java.lang.String aLocation, java.lang.String aMessage)
      Constructs a new instance.
      Diagnostic​(org.eclipse.emf.common.util.Diagnostic aDiagnostic, ModelSourceExplorer aSourceExplorer)
      Constructs a new instance based on an existing diagnostic object.
      Diagnostic​(org.eclipse.emf.ecore.resource.Resource.Diagnostic aDiagnostic)
      Constructs a new instance based on an existing diagnostic object.
    • Constructor Detail

      • Diagnostic

        public Diagnostic​(java.lang.String aLocation,
                          java.lang.String aMessage)
        Constructs a new instance.
        Parameters:
        aLocation - the location of the error
        aMessage - the error message
      • Diagnostic

        public Diagnostic​(org.eclipse.emf.ecore.resource.Resource.Diagnostic aDiagnostic)
        Constructs a new instance based on an existing diagnostic object.
        Parameters:
        aDiagnostic -
      • Diagnostic

        public Diagnostic​(org.eclipse.emf.common.util.Diagnostic aDiagnostic,
                          ModelSourceExplorer aSourceExplorer)
        Constructs a new instance based on an existing diagnostic object.
        Parameters:
        aDiagnostic -
        aSourceExplorer - the model source explorer (optional; location info will not be as detailed if not provided)
    • Method Detail

      • getLocation

        public java.lang.String getLocation()
      • getEObject

        public org.eclipse.emf.ecore.EObject getEObject()
      • getMessage

        public java.lang.String getMessage()