org.eclipse.xtext.diagnostics
Interface Diagnostic

All Superinterfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic
All Known Implementing Classes:
AbstractDiagnostic, ExceptionDiagnostic, TransformationDiagnostic, XtextLinkingDiagnostic, XtextSyntaxDiagnostic

public interface Diagnostic
extends org.eclipse.emf.ecore.resource.Resource.Diagnostic

A specialized Resource.Diagnostic that knows about the region in the document, e.g. the getOffset() and getLength() of the issue source. Implementors should inherit from AbstractDiagnostic instead of implementing this interface directly.

Author:
Sebastian Zarnekow - Initial contribution and API
See Also:
XtextLinkingDiagnostic, XtextSyntaxDiagnostic, ExceptionDiagnostic
This interface is not intended to be implemented by clients.
This interface is not intended to be implemented by clients.

Field Summary
static java.lang.String LINKING_DIAGNOSTIC
           
static java.lang.String SYNTAX_DIAGNOSITC
          Deprecated. use SYNTAX_DIAGNOSTIC instead.
static java.lang.String SYNTAX_DIAGNOSTIC
           
 
Method Summary
 int getLength()
          Returns the length of this diagnostic.
 int getOffset()
          Returns the offset of this diagnostic.
 
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
getColumn, getLine, getLocation, getMessage
 

Field Detail

SYNTAX_DIAGNOSTIC

static final java.lang.String SYNTAX_DIAGNOSTIC
Since:
2.1
See Also:
Constant Field Values

SYNTAX_DIAGNOSITC

@Deprecated
static final java.lang.String SYNTAX_DIAGNOSITC
Deprecated. use SYNTAX_DIAGNOSTIC instead.
See Also:
Constant Field Values

LINKING_DIAGNOSTIC

static final java.lang.String LINKING_DIAGNOSTIC
See Also:
Constant Field Values
Method Detail

getOffset

int getOffset()
Returns the offset of this diagnostic.

Returns:
the offset of this diagnostic.

getLength

int getLength()
Returns the length of this diagnostic.

Returns:
the length of this diagnostic.