org.eclipse.xtext.diagnostics
Class AbstractDiagnostic

java.lang.Object
  extended by org.eclipse.xtext.diagnostics.AbstractDiagnostic
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic, Diagnostic
Direct Known Subclasses:
TransformationDiagnostic, XtextLinkingDiagnostic, XtextSyntaxDiagnostic

public abstract class AbstractDiagnostic
extends java.lang.Object
implements Diagnostic

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 
Fields inherited from interface org.eclipse.xtext.diagnostics.Diagnostic
LINKING_DIAGNOSTIC, SYNTAX_DIAGNOSITC, SYNTAX_DIAGNOSTIC
 
Constructor Summary
AbstractDiagnostic()
           
 
Method Summary
abstract  java.lang.String getCode()
           
 int getColumn()
           
abstract  java.lang.String[] getData()
           
 int getLength()
          Returns the length of this diagnostic.
 int getLine()
           
 java.lang.String getLocation()
           
protected abstract  INode getNode()
           
 int getOffset()
          Returns the offset of this diagnostic.
 org.eclipse.emf.common.util.URI getUriToProblem()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
getMessage
 

Constructor Detail

AbstractDiagnostic

public AbstractDiagnostic()
Method Detail

getNode

protected abstract INode getNode()

getCode

public abstract java.lang.String getCode()

getData

public abstract java.lang.String[] getData()

getLength

public int getLength()
Description copied from interface: Diagnostic
Returns the length of this diagnostic.

Specified by:
getLength in interface Diagnostic
Returns:
the length of this diagnostic.

getOffset

public int getOffset()
Description copied from interface: Diagnostic
Returns the offset of this diagnostic.

Specified by:
getOffset in interface Diagnostic
Returns:
the offset of this diagnostic.

getColumn

public int getColumn()
Specified by:
getColumn 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

getLocation

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

getUriToProblem

public org.eclipse.emf.common.util.URI getUriToProblem()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object