Class ModelTranslator.Result

  • All Implemented Interfaces:
    net.ssehub.easy.basics.modelManagement.IDeferredModelLoader<net.ssehub.easy.varModel.model.Project>
    Enclosing class:
    ModelTranslator

    public static class ModelTranslator.Result
    extends java.lang.Object
    implements net.ssehub.easy.basics.modelManagement.IDeferredModelLoader<net.ssehub.easy.varModel.model.Project>
    Implements a translation result enabling deferred model loading. As long as completeLoading() is not called, the model instances stored in this instance are not ready for use.
    Author:
    Holger Eichelberger
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Result​(ModelTranslator translator)
      Creates a result instance representing the parse result for multiple projects and enables deferred loading.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void add​(ResultEntry entry)
      Adds a partially completed xText project and an IVML project in terms of an entry.
      void completeLoading()  
      net.ssehub.easy.dslCore.TranslationResult<net.ssehub.easy.varModel.model.Project> createTranslationResult()
      Creates the translation result.
      (package private) ModelTranslator getTranslator()
      Returns the translator instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Result

        private Result​(ModelTranslator translator)
        Creates a result instance representing the parse result for multiple projects and enables deferred loading.
        Parameters:
        translator - the model translator instance
    • Method Detail

      • add

        private void add​(ResultEntry entry)
        Adds a partially completed xText project and an IVML project in terms of an entry.
        Parameters:
        entry - the entry to be added
      • completeLoading

        public void completeLoading()
        Specified by:
        completeLoading in interface net.ssehub.easy.basics.modelManagement.IDeferredModelLoader<net.ssehub.easy.varModel.model.Project>
      • createTranslationResult

        public net.ssehub.easy.dslCore.TranslationResult<net.ssehub.easy.varModel.model.Project> createTranslationResult()
        Creates the translation result.
        Returns:
        the translation result
      • getTranslator

        ModelTranslator getTranslator()
        Returns the translator instance.
        Returns:
        the translator instance