Class TextResourceDiagnostic

    • Constructor Detail

      • TextResourceDiagnostic

        public TextResourceDiagnostic​(String message,
                                      String location,
                                      TextLocation textLocation)
        Конструктор.
        Parameters:
        message - сообщение об ошибке или предупреждении.
        location - location. Обычно, URI ресурса
        textLocation - фрагмент текста, в котором ошибка
    • Method Detail

      • getMessage

        public String getMessage()
        Specified by:
        getMessage in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
      • getLocation

        public String getLocation()
        Specified by:
        getLocation in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
      • getLine

        public int getLine()
        Specified by:
        getLine in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
      • getColumn

        public int getColumn()
        Specified by:
        getColumn in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
      • getTextLocation

        public TextLocation getTextLocation()
        Description copied from interface: ITextResourceDiagnostic
        Получение диапазона в тексте, которому соответствует данный элемент диагностики.
        Specified by:
        getTextLocation in interface ITextResourceDiagnostic
        Returns:
        диапазон в тексте.