Class XSSFWorkbookGeneratorOptions
java.lang.Object
org.brapi.schematools.core.xlsx.options.XSSFWorkbookGeneratorOptions
- All Implemented Interfaces:
Options,Validatable
Options for the
GraphQLGenerator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XSSFWorkbookGeneratorOptionsload()Load the default optionsstatic XSSFWorkbookGeneratorOptionsload(InputStream inputStream) Load the options from an options input stream in YAML or JSON.static XSSFWorkbookGeneratorOptionsLoad the options from an options file in YAML or Json.override(XSSFWorkbookGeneratorOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullvalidate()Checks if the Validatable object is valid, return a list of errors if it is not validMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.brapi.schematools.core.options.Options
getSchemaToolsVersion
-
Constructor Details
-
XSSFWorkbookGeneratorOptions
public XSSFWorkbookGeneratorOptions()
-
-
Method Details
-
load
Load the default options- Returns:
- The default options
-
load
Load the options from an options file in YAML or Json. The options file may have missing (defined) values, in these cases the default values are loaded. Seeload()- Parameters:
optionsFile- The path to the options file in YAML or Json.- Returns:
- The options loaded from the YAML or Json file.
- Throws:
IOException- if the options file cannot be found or is incorrectly formatted.
-
load
Load the options from an options input stream in YAML or JSON. The options file may have missing (defined) values, in these cases the default values are loaded. Seeload()- Parameters:
inputStream- The input stream in YAML or JSON.- Returns:
- The options loaded from input stream.
- Throws:
IOException- if the input stream is not valid or the content is incorrectly formatted.
-
validate
Description copied from interface:ValidatableChecks if the Validatable object is valid, return a list of errors if it is not valid- Specified by:
validatein interfaceValidatable- Returns:
- a Validation object than can be used queried to find if the object is valid and any errors if it is not valid
-
override
Overrides the values in this Options Object from the provided Options Object if they are non-null- Parameters:
overrideOptions- the options which will be used to override this Options Object- Returns:
- this options for method chaining
-