Class QueryTypeOptions
java.lang.Object
org.brapi.schematools.core.graphql.options.QueryTypeOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of the Query Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the query is partition by crop, so that queries are not across cropsvoidoverride(QueryTypeOptions 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
-
QueryTypeOptions
public QueryTypeOptions()
-
-
Method Details
-
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
-
isPartitionedByCrop
public boolean isPartitionedByCrop()Determines if the query is partition by crop, so that queries are not across crops- Returns:
trueif the query is partition by crop, so that queries are not across crops,falseotherwise
-