Class Format


  • public class Format
    extends FormatterFactory
    A FormatterFactory implementation that corresponds to <format>...</format> configuration element.

    It defines a formatter for custom includes/excludes that executes list of generic, language agnostic steps, like LicenseHeader.

    • Constructor Detail

      • Format

        public Format()
    • Method Detail

      • defaultIncludes

        public java.util.Set<java.lang.String> defaultIncludes​(org.apache.maven.project.MavenProject project)
        Specified by:
        defaultIncludes in class FormatterFactory
      • addBiome

        public void addBiome​(Biome biome)
        Adds a step to this format that format code with the Biome formatter.
        Parameters:
        biome - Biome configuration to use.
      • addRome

        @Deprecated
        public void addRome​(Rome rome)
        Deprecated.
        Rome has transitioned to Biome. Use addBiome(Biome).
        Adds a step to this format that format code with the Rome formatter.
        Parameters:
        rome - Rome configuration to use.