Package org.apache.rat
Class Defaults.Builder
java.lang.Object
org.apache.rat.Defaults.Builder
- Enclosing class:
Defaults
The Defaults builder.
-
Method Summary
Modifier and TypeMethodDescriptionAdds a configuration file to be read.Adds the name of a configuration file to be read.Adds a URL to a configuration file to be read.build()
Builds the defaults object.Removes the default definitions from the list of files to process.Removes a file from the list of configuration files to process.Removes a file name from the list of configuration files to process.Removes a file from the list of configuration files to process.
-
Method Details
-
add
Adds a URL to a configuration file to be read.- Parameters:
uri
- the URI to add- Returns:
- this Builder for chaining
-
add
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
Adds a configuration file to be read.- Parameters:
file
- the File to add.- Returns:
- this Builder for chaining
-
remove
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
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
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
Removes the default definitions from the list of files to process.- Returns:
- this Builder for chaining
-
build
Builds the defaults object.- Returns:
- the current defaults object.
-