Class GenerationSessionContext


  • public class GenerationSessionContext
    extends Object
    Available from ITemplateGenerator.getGeneratorSessionContext(). Generally shall not get exposed in generated code, however there are templates that cast genContext to TemplateQueryContext and access ITemplateGenerator from there, with subsequent access to this class (e.g. bl.java.closures - those under BL, not that standalone). Igor Alshannikov Sep 19, 2005
    • Method Detail

      • clearTransientObjects

        public void clearTransientObjects()
      • getOriginalInputModel

        public SModel getOriginalInputModel()
      • getRepository

        @Deprecated
        public SRepository getRepository()
        Deprecated.
        Transitional access to SRepository. Likely, the code that needs a repository shall get refactored not to use one. Contract is questionable, provided we head towards distinct repository for transient models. For the time being, this repository corresponds to generator's environment, e.g. project it's run from.
      • putTransientObject

        public void putTransientObject​(Object key,
                                       Object o)
      • getTransientObject

        public Object getTransientObject​(Object key)
      • putStepObject

        public void putStepObject​(Object key,
                                  Object o)
      • getStepObject

        public Object getStepObject​(Object key)
      • putSessionObject

        public void putSessionObject​(Object key,
                                     Object o)
      • getSessionObject

        public Object getSessionObject​(Object key)
      • createUniqueName

        public String createUniqueName​(String roughName,
                                       SNode contextNode,
                                       SNode inputNode)
      • createIndexedName

        public String createIndexedName​(String baseName,
                                        SNode contextNode,
                                        boolean noIndexForFirst)
      • clearCopiedRootsSet

        public void clearCopiedRootsSet()
      • registerCopiedRoot

        public void registerCopiedRoot​(SNode outputRootNode)
      • isCopiedRoot

        public boolean isCopiedRoot​(SNode inputNode)
      • getGenerationParameter

        public Object getGenerationParameter​(String name)