org.eclipse.xtext.validation
Class RangeBasedDiagnostic
java.lang.Object
org.eclipse.xtext.validation.AbstractValidationDiagnostic
org.eclipse.xtext.validation.RangeBasedDiagnostic
- All Implemented Interfaces:
- org.eclipse.emf.common.util.Diagnostic
public class RangeBasedDiagnostic
- extends AbstractValidationDiagnostic
A validation diagnostic that is associated with a range.
- Author:
- Sebastian Zarnekow - Initial contribution and API
| Fields inherited from interface org.eclipse.emf.common.util.Diagnostic |
CANCEL, CANCEL_INSTANCE, ERROR, INFO, OK, OK_INSTANCE, WARNING |
|
Constructor Summary |
protected |
RangeBasedDiagnostic(int severity,
java.lang.String message,
org.eclipse.emf.ecore.EObject source,
int offset,
int length,
CheckType checkType,
java.lang.String issueCode,
java.lang.String[] issueData)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RangeBasedDiagnostic
protected RangeBasedDiagnostic(int severity,
java.lang.String message,
org.eclipse.emf.ecore.EObject source,
int offset,
int length,
CheckType checkType,
java.lang.String issueCode,
java.lang.String[] issueData)
getData
public java.util.List<?> getData()
getOffset
public int getOffset()
getLength
public int getLength()
getSource
public java.lang.String getSource()
- Specified by:
getSource in interface org.eclipse.emf.common.util.Diagnostic- Overrides:
getSource in class AbstractValidationDiagnostic
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractValidationDiagnostic