Class OptionsBuilder
java.lang.Object
ro.isdc.wro.extensions.processor.support.linter.OptionsBuilder
Responsible for building json representations of the options consumed by linter code.
- Since:
- 1.4.2
- Author:
- Alex Objelean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildFromCsv(String optionsAsCsv) Builds options json representation from a set of options encoded in a string, each of them being separated by a comma.String[]splitOptions(String optionAsString) Split multiple options into an array of options.
-
Constructor Details
-
OptionsBuilder
public OptionsBuilder()
-
-
Method Details
-
splitOptions
Split multiple options into an array of options.- Parameters:
optionAsString- string representation of multiple options.- Returns:
- an array of options.
-
buildFromCsv
Builds options json representation from a set of options encoded in a string, each of them being separated by a comma.- Parameters:
optionsAsCsv-- Returns:
- json representation of options.
-
build
- Parameters:
options- an array of options as provided by user.- Returns:
- the json object containing options to be used by linter code.
-