ro.isdc.wro.extensions.processor.support.linter
Class OptionsBuilder
java.lang.Object
ro.isdc.wro.extensions.processor.support.linter.OptionsBuilder
public class OptionsBuilder
- extends Object
Responsible for building json representations of the options consumed by linter code.
- Since:
- 1.4.2
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionsBuilder
public OptionsBuilder()
splitOptions
public String[] splitOptions(String optionAsString)
- Split multiple options into an array of options.
- Parameters:
optionAsString
- string representation of multiple options.
- Returns:
- an array of options.
buildFromCsv
public String buildFromCsv(String optionsAsCsv)
- 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
public String build(String... options)
- Parameters:
options
- an array of options as provided by user.
- Returns:
- the json object containing options to be used by linter code.
Copyright © 2008-2013. All Rights Reserved.