org.eclipse.xtext.serializer.tokens
Interface ICrossReferenceSerializer

All Known Implementing Classes:
CrossReferenceSerializer

public interface ICrossReferenceSerializer

In the process of serializing a model to a DSL, references to model elements need to be turned into string representations which identify the targeted model element. Implementations of this interface compute this string representation. Implementations must be synchronous with the DSL's parser implementation. Implementations might introduce some kind of scoping.


Method Summary
 boolean isValid(org.eclipse.emf.ecore.EObject context, CrossReference crossref, org.eclipse.emf.ecore.EObject target, INode node, ISerializationDiagnostic.Acceptor errorAcceptor)
           
 java.lang.String serializeCrossRef(org.eclipse.emf.ecore.EObject context, CrossReference crossref, org.eclipse.emf.ecore.EObject target, INode node, ISerializationDiagnostic.Acceptor errorAcceptor)
           
 

Method Detail

isValid

boolean isValid(org.eclipse.emf.ecore.EObject context,
                CrossReference crossref,
                org.eclipse.emf.ecore.EObject target,
                INode node,
                ISerializationDiagnostic.Acceptor errorAcceptor)

serializeCrossRef

java.lang.String serializeCrossRef(org.eclipse.emf.ecore.EObject context,
                                   CrossReference crossref,
                                   org.eclipse.emf.ecore.EObject target,
                                   INode node,
                                   ISerializationDiagnostic.Acceptor errorAcceptor)