org.eclipse.xtext.validation
Class FeatureBasedDiagnostic
java.lang.Object
org.eclipse.xtext.validation.AbstractValidationDiagnostic
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.
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)
|
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 |
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.
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