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 int
getColumn()
int
getLine()
String
getLocation()
String
getMessage()
TextLocation
getTextLocation()
Получение диапазона в тексте, которому соответствует данный элемент диагностики.
-
-
-
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 interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLocation
public String getLocation()
- Specified by:
getLocation
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLine
public int getLine()
- Specified by:
getLine
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getColumn
public int getColumn()
- Specified by:
getColumn
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getTextLocation
public TextLocation getTextLocation()
Description copied from interface:ITextResourceDiagnostic
Получение диапазона в тексте, которому соответствует данный элемент диагностики.- Specified by:
getTextLocation
in interfaceITextResourceDiagnostic
- Returns:
- диапазон в тексте.
-
-