org.eclipse.xtext.validation
Class AbstractValidationDiagnostic
java.lang.Object
org.eclipse.xtext.validation.AbstractValidationDiagnostic
- All Implemented Interfaces:
- org.eclipse.emf.common.util.Diagnostic
- Direct Known Subclasses:
- FeatureBasedDiagnostic, RangeBasedDiagnostic
public abstract class AbstractValidationDiagnostic
- extends java.lang.Object
- implements org.eclipse.emf.common.util.Diagnostic
- 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 |
AbstractValidationDiagnostic(int severity,
java.lang.String message,
org.eclipse.emf.ecore.EObject source,
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 |
Methods inherited from interface org.eclipse.emf.common.util.Diagnostic |
getData |
AbstractValidationDiagnostic
protected AbstractValidationDiagnostic(int severity,
java.lang.String message,
org.eclipse.emf.ecore.EObject source,
CheckType checkType,
java.lang.String issueCode,
java.lang.String... issueData)
- Parameters:
issueData
- optional user data. May not contain null
entries.
getChildren
public java.util.List<org.eclipse.emf.common.util.Diagnostic> getChildren()
- Specified by:
getChildren
in interface org.eclipse.emf.common.util.Diagnostic
getCode
public int getCode()
- Specified by:
getCode
in interface org.eclipse.emf.common.util.Diagnostic
getSource
public java.lang.String getSource()
- Specified by:
getSource
in interface org.eclipse.emf.common.util.Diagnostic
getSourceEObject
public org.eclipse.emf.ecore.EObject getSourceEObject()
getException
public java.lang.Throwable getException()
- Specified by:
getException
in interface org.eclipse.emf.common.util.Diagnostic
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interface org.eclipse.emf.common.util.Diagnostic
getSeverity
public int getSeverity()
- Specified by:
getSeverity
in interface org.eclipse.emf.common.util.Diagnostic
getIssueCode
public java.lang.String getIssueCode()
getIssueData
public java.lang.String[] getIssueData()
getCheckType
public CheckType getCheckType()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
severityToStr
public static java.lang.String severityToStr(int severity)