Interface ISerializer

  • All Known Implementing Classes:
    Serializer, Serializer

    public interface ISerializer
    Using a grammar, the Serializer converts EMF models to text. This is inverse to the parser converting text into EMF models. For reasons of backwards compatibility, this interface is still bound to Serializer. It is recommended to bind it to Serializer in the runtime module of your language.
    Since:
    2.0
    • Method Detail

      • serialize

        java.lang.String serialize​(org.eclipse.emf.ecore.EObject obj)
      • serialize

        java.lang.String serialize​(org.eclipse.emf.ecore.EObject obj,
                                   SaveOptions options)
      • serialize

        void serialize​(org.eclipse.emf.ecore.EObject obj,
                       java.io.Writer writer,
                       SaveOptions options)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeReplacement

        org.eclipse.xtext.util.ReplaceRegion serializeReplacement​(org.eclipse.emf.ecore.EObject obj,
                                                                  SaveOptions options)