Class OntModelGeneratorOptions
java.lang.Object
org.brapi.schematools.core.ontmodel.options.OntModelGeneratorOptions
- All Implemented Interfaces:
Options,Validatable
Options for the
GraphQLGenerator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OntModelGeneratorOptionsload()Load the default optionsstatic OntModelGeneratorOptionsload(InputStream inputStream) Load the options from an options input stream in YAML or Json.static OntModelGeneratorOptionsLoad the options from an options file in YAML or Json.validate()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
-
OntModelGeneratorOptions
public OntModelGeneratorOptions()
-
-
Method Details
-
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 can not be found or is incorrectly formatted.
-
load
Load the default options- Returns:
- The default options
-
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
-