Class ImportManager


  • public class ImportManager
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ImportManager instance
      A shared instance of ImportManage, used as a default by several other assembler methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear this ImportManager's cache.
      Model withImports​(Model model)
      Answer model if it has no imports, or a union model with model as its base and its imported models as the other components.
      Model withImports​(FileManager fm, Model model)
      Answer model if it has no imports, or a union model with model as its base and its imported models as the other components.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • instance

        public static final ImportManager instance
        A shared instance of ImportManage, used as a default by several other assembler methods.
    • Constructor Detail

      • ImportManager

        public ImportManager()
    • Method Detail

      • clear

        public void clear()
        Clear this ImportManager's cache.
      • withImports

        public Model withImports​(Model model)
        Answer model if it has no imports, or a union model with model as its base and its imported models as the other components. The default file manager is used to load the models.
      • withImports

        public Model withImports​(FileManager fm,
                                 Model model)
        Answer model if it has no imports, or a union model with model as its base and its imported models as the other components. The file manager fm is used to load the imported models.