Class FileContext

java.lang.Object
io.wcm.devops.conga.generator.spi.context.FileContext

public final class FileContext extends Object
File context for plugins.
  • Constructor Details

    • FileContext

      public FileContext()
  • Method Details

    • getFile

      public File getFile()
      Gets file.
      Returns:
      File
    • file

      public FileContext file(File value)
      Sets file.
      Parameters:
      value - File
      Returns:
      this
    • getCanonicalPath

      public String getCanonicalPath()
      Gets canonical path.
      Returns:
      Canonical path
    • getCharset

      public String getCharset()
      Gets charset.
      Returns:
      Charset
    • charset

      public FileContext charset(String value)
      Sets charset.
      Parameters:
      value - Charset
      Returns:
      this
    • charset

      public FileContext charset(Charset value)
      Sets charset.
      Parameters:
      value - Charset
      Returns:
      this
    • getModelOptions

      public Map<String,Object> getModelOptions()
      Gets model options.
      Returns:
      Model options
    • modelOptions

      public FileContext modelOptions(Map<String,Object> value)
      Sets model options.
      Parameters:
      value - Model options
      Returns:
      this
    • getTargetDir

      public File getTargetDir()
      Gets target directory.
      Returns:
      Target directory for generated configuration
    • targetDir

      public FileContext targetDir(File value)
      Sets target directory.
      Parameters:
      value - Target directory for generated configuration
      Returns:
      this
    • toString

      public String toString()
      Overrides:
      toString in class Object