Class TemplateSetImpl

java.lang.Object
net.kyori.blossom.internal.TemplateSetImpl
All Implemented Interfaces:
TemplateSetInternal, TemplateSet, org.gradle.api.Named
Direct Known Subclasses:
ResourceTemplateSetImpl, SourceTemplateSetImpl

public abstract class TemplateSetImpl extends Object implements TemplateSetInternal
A directory of templates.

While it's perfectly possible to

  • Constructor Details

    • TemplateSetImpl

      @Inject public TemplateSetImpl(String name)
  • Method Details

    • getObjects

      @Inject protected abstract org.gradle.api.model.ObjectFactory getObjects()
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface org.gradle.api.Named
      Specified by:
      getName in interface TemplateSet
    • getPropertyFiles

      @NotNull public @NotNull org.gradle.api.file.ConfigurableFileCollection getPropertyFiles()
      Description copied from interface: TemplateSet
      A collection of data files in YAML format.
      Specified by:
      getPropertyFiles in interface TemplateSet
      Returns:
      the data file collection
    • getProperties

      @NotNull public @NotNull org.gradle.api.provider.MapProperty<String,Object> getProperties()
      Description copied from interface: TemplateSet
      Runtime-defined properties.

      These properties will override anything in the data files.

      Specified by:
      getProperties in interface TemplateSet
      Returns:
      the properties
    • getHeader

      @NotNull public @NotNull org.gradle.api.provider.Property<String> getHeader()
      Description copied from interface: TemplateSet
      A literal header to insert at the top of generated source files.

      This property is optional.

      Specified by:
      getHeader in interface TemplateSet
      Returns:
      the header
    • getIncludes

      @NotNull public @NotNull org.gradle.api.file.SourceDirectorySet getIncludes()
      Description copied from interface: TemplateSet
      Directories providing templates which can be included into process templates, but which will not be processed for output themselves.
      Specified by:
      getIncludes in interface TemplateSet
      Returns:
      the includes directories
    • getTemplates

      @NotNull public @NotNull org.gradle.api.file.SourceDirectorySet getTemplates()
      Description copied from interface: TemplateSet
      Directories containing templates.

      All templates share a common namespace, so templates in directories that come first will override templates that come later.

      Specified by:
      getTemplates in interface TemplateSet
      Returns:
      the templates to process
    • getVariants

      @NotNull public @NotNull org.gradle.api.NamedDomainObjectContainer<Variant> getVariants()
      Description copied from interface: TemplateSet
      A container of template variants.

      Variants will process the same templates, but with different property values.

      Specified by:
      getVariants in interface TemplateSet
      Returns:
      the variants collection