org.eclipse.xtext.validation
Class FeatureBasedDiagnostic

java.lang.Object
  extended by org.eclipse.xtext.validation.AbstractValidationDiagnostic
      extended by org.eclipse.xtext.validation.FeatureBasedDiagnostic
All Implemented Interfaces:
org.eclipse.emf.common.util.Diagnostic

public class FeatureBasedDiagnostic
extends AbstractValidationDiagnostic

A diagnostic that is typically associated with a feature.


Field Summary
 
Fields inherited from interface org.eclipse.emf.common.util.Diagnostic
CANCEL, CANCEL_INSTANCE, ERROR, INFO, OK, OK_INSTANCE, WARNING
 
Constructor Summary
FeatureBasedDiagnostic(int severity, java.lang.String message, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature feature, int index, CheckType checkType, java.lang.String issueCode, java.lang.String... issueData)
           
 
Method Summary
 java.util.List<?> getData()
           
 org.eclipse.emf.ecore.EStructuralFeature getFeature()
           
 int getIndex()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtext.validation.AbstractValidationDiagnostic
getCheckType, getChildren, getCode, getException, getIssueCode, getIssueData, getMessage, getSeverity, getSource, getSourceEObject, severityToStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureBasedDiagnostic

public FeatureBasedDiagnostic(int severity,
                              java.lang.String message,
                              org.eclipse.emf.ecore.EObject source,
                              org.eclipse.emf.ecore.EStructuralFeature feature,
                              int index,
                              CheckType checkType,
                              java.lang.String issueCode,
                              java.lang.String... issueData)
Parameters:
issueData - optional user data. May not contain null entries.
Method Detail

getData

public java.util.List<?> getData()

getFeature

public org.eclipse.emf.ecore.EStructuralFeature getFeature()

getIndex

public int getIndex()

toString

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