Class Defaults.Builder

java.lang.Object
org.apache.rat.Defaults.Builder
Enclosing class:
Defaults

public static final class Defaults.Builder extends Object
The Defaults builder.
  • Method Details

    • add

      public Defaults.Builder add(URI uri)
      Adds a URL to a configuration file to be read.
      Parameters:
      uri - the URI to add
      Returns:
      this Builder for chaining
    • add

      public Defaults.Builder add(String fileName) throws MalformedURLException
      Adds the name of a configuration file to be read.
      Parameters:
      fileName - the name of the file to add.
      Returns:
      this Builder for chaining
      Throws:
      MalformedURLException - in case the fileName cannot be found.
    • add

      public Defaults.Builder add(File file)
      Adds a configuration file to be read.
      Parameters:
      file - the File to add.
      Returns:
      this Builder for chaining
    • remove

      public Defaults.Builder remove(URI uri)
      Removes a file from the list of configuration files to process.
      Parameters:
      uri - the URI of the file to remove.
      Returns:
      this Builder for chaining
    • remove

      public Defaults.Builder remove(String fileName) throws MalformedURLException
      Removes a file name from the list of configuration files to process.
      Parameters:
      fileName - the fileName of the file to remove.
      Returns:
      this Builder for chaining
      Throws:
      MalformedURLException - in case the fileName cannot be found.
    • remove

      public Defaults.Builder remove(File file)
      Removes a file from the list of configuration files to process.
      Parameters:
      file - the File of the file to remove.
      Returns:
      this Builder for chaining
    • noDefault

      public Defaults.Builder noDefault()
      Removes the default definitions from the list of files to process.
      Returns:
      this Builder for chaining
    • build

      public Defaults build()
      Builds the defaults object.
      Returns:
      the current defaults object.