Package com._1c.g5.modeling.text
Class TextResourceDiagnostic
- java.lang.Object
-
- com._1c.g5.modeling.text.TextResourceDiagnostic
-
- All Implemented Interfaces:
ITextResourceDiagnostic,org.eclipse.emf.ecore.resource.Resource.Diagnostic
public final class TextResourceDiagnostic extends Object implements ITextResourceDiagnostic
Типовая реализация интерфейсаITextResourceDiagnostic.
-
-
Constructor Summary
Constructors Constructor Description TextResourceDiagnostic(String message, String location, TextLocation textLocation)Конструктор.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()intgetLine()StringgetLocation()StringgetMessage()TextLocationgetTextLocation()Получение диапазона в тексте, которому соответствует данный элемент диагностики.
-
-
-
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:
getMessagein interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLocation
public String getLocation()
- Specified by:
getLocationin interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLine
public int getLine()
- Specified by:
getLinein interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getColumn
public int getColumn()
- Specified by:
getColumnin interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getTextLocation
public TextLocation getTextLocation()
Description copied from interface:ITextResourceDiagnosticПолучение диапазона в тексте, которому соответствует данный элемент диагностики.- Specified by:
getTextLocationin interfaceITextResourceDiagnostic- Returns:
- диапазон в тексте.
-
-