Interface GenerationScriptContext

All Superinterfaces:
BaseContext, ProjectScriptContext, ScriptContext, SpecialistsBroker
All Known Subinterfaces:
GenerationContext

public interface GenerationScriptContext extends ProjectScriptContext
Context for a script within the generation task.
Since:
3.0.1
  • Method Details

    • getGenerationContext

      GenerationContext getGenerationContext()
      Provides access to the generation context.
      Since:
      4.0.17
    • getLanguage

      Language getLanguage()
      The current generated language
      Returns:
      the current generated language
      Since:
      3.0.1
    • getTemplateSet

      TemplateSet getTemplateSet()
      The current generated TemplateSet
      Returns:
      The TemplateSet
      Since:
      3.0.1
    • isRelease

      boolean isRelease()
      Generate current or release
      Returns:
      is release
      Since:
      3.0.1
    • isPreview

      boolean isPreview()
      Preview or normal generation
      Returns:
      is preview
      Since:
      3.0.1
    • toString

      String toString(Object object) throws Exception
      Return the string representation of an object. Same as $CMS_VALUE(object)$ during the generation.
      Throws:
      Exception - arbitrary exception which occurs during conversion.
      Since:
      4.0.17