Class PropertiesOptions
java.lang.Object
org.brapi.schematools.core.graphql.options.PropertiesOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of properties and their usage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLinkTypeFor(BrAPIObjectType type, BrAPIObjectProperty property) Gets the link type for a type propertyvoidoverride(PropertiesOptions 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 valid
-
Constructor Details
-
PropertiesOptions
public PropertiesOptions()
-
-
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
-
getLinkTypeFor
Gets the link type for a type property- Parameters:
type- The BrAPI Object typeproperty- The BrAPI property- Returns:
- the link type for specified type property
-