org.eclipse.xtext.serializer.diagnostic
Class SerializationDiagnostic

java.lang.Object
  extended by org.eclipse.xtext.serializer.diagnostic.SerializationDiagnostic
All Implemented Interfaces:
ISerializationDiagnostic

public class SerializationDiagnostic
extends java.lang.Object
implements ISerializationDiagnostic

Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic
ISerializationDiagnostic.Acceptor, ISerializationDiagnostic.ExceptionDiagnostic, ISerializationDiagnostic.ExceptionThrowingAcceptor, ISerializationDiagnostic.StdErrAcceptor
 
Field Summary
protected  org.eclipse.emf.ecore.EObject context
           
protected  org.eclipse.emf.ecore.EStructuralFeature feature
           
protected  java.lang.String message
           
protected  org.eclipse.emf.ecore.EObject semanticObject
           
 
Fields inherited from interface org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic
EXCEPTION_THROWING_ACCEPTOR, STDERR_ACCEPTOR
 
Constructor Summary
SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject, AbstractElement element, java.lang.String message)
           
SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject, org.eclipse.emf.ecore.EObject context, java.lang.String message)
           
SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String message)
           
SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject, java.lang.String message)
           
 
Method Summary
 boolean breaksSyntax()
           
 org.eclipse.emf.ecore.EObject getContext()
           
 java.lang.Throwable getException()
           
 java.lang.String getMessage()
           
 org.eclipse.emf.ecore.EObject getSemanticObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

feature

protected org.eclipse.emf.ecore.EStructuralFeature feature

message

protected java.lang.String message

semanticObject

protected org.eclipse.emf.ecore.EObject semanticObject

context

protected org.eclipse.emf.ecore.EObject context
Constructor Detail

SerializationDiagnostic

public SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject,
                               AbstractElement element,
                               java.lang.String message)

SerializationDiagnostic

public SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject,
                               org.eclipse.emf.ecore.EStructuralFeature feature,
                               java.lang.String message)

SerializationDiagnostic

public SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject,
                               org.eclipse.emf.ecore.EObject context,
                               java.lang.String message)

SerializationDiagnostic

public SerializationDiagnostic(org.eclipse.emf.ecore.EObject semanticObject,
                               java.lang.String message)
Method Detail

breaksSyntax

public boolean breaksSyntax()
Specified by:
breaksSyntax in interface ISerializationDiagnostic

getException

public java.lang.Throwable getException()
Specified by:
getException in interface ISerializationDiagnostic

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface ISerializationDiagnostic

getSemanticObject

public org.eclipse.emf.ecore.EObject getSemanticObject()
Specified by:
getSemanticObject in interface ISerializationDiagnostic

getContext

public org.eclipse.emf.ecore.EObject getContext()
Specified by:
getContext in interface ISerializationDiagnostic