ODChecker class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is an Open Ticket config checker.
It checks a specific config file for invalid/missing configurations. This data can then be used to show to the user what's wrong! You can check for example if a string is longer/shorter than a certain amount of characters & more!
You can use this class when you create your own custom config file & you want to check it for syntax errors.
Properties
config class ➜ api.ODConfig
The config file that needs to be checked
inherited id class ➜ api.ODId
The id of this data.
messages array ➜ api.ODCheckerMessage[]
Temporary storage for all error messages from the check() method (not recommended to use)
priority number ➜ number
The higher the priority, the faster it gets checked!
quit boolean ➜ boolean
Temporary storage for the quit status from the check() method (not recommended to use)
storage class ➜ api.ODCheckerStorage
The storage of this checker (reference for ODCheckerManager.storage)
structure class ➜ api.ODCheckerStructure
The structure of the config file
Methods
constructor() function ➜ api.ODChecker
(no description)
View Parameters (5)
id: type ➜api.ODValidId- Parameter Description Lorem Ipsum.storage: class ➜api.ODCheckerStorage- Parameter Description Lorem Ipsum.priority: number ➜number- Parameter Description Lorem Ipsum.config: class ➜api.ODConfig- Parameter Description Lorem Ipsum.structure: class ➜api.ODCheckerStructure- Parameter Description Lorem Ipsum.
inherited protected _change() function ➜ void
Trigger an onChange() event in the parent ODManager of this class.
inherited changed() function ➜ void
(❌ SYSTEM ONLY!!) Set the callback executed when a value inside this class changes.
check() function ➜ api.ODCheckerResult
Run this checker. Returns all errors
createMessage() function ➜ void
A shortcut to create a warning, info or error message
View Parameters (8)
id: type ➜api.ODValidId- Parameter Description Lorem Ipsum.type: type ➜"info"|"warning"|"error"- Parameter Description Lorem Ipsum.message: string ➜string- Parameter Description Lorem Ipsum.locationTrace: type ➜api.ODCheckerLocationTrace- Parameter Description Lorem Ipsum.docs: type ➜null|string- Parameter Description Lorem Ipsum.translationParams: array ➜string[]- Parameter Description Lorem Ipsum.locationId: class ➜api.ODId- Parameter Description Lorem Ipsum.locationDocs: type ➜null|string- Parameter Description Lorem Ipsum.
locationTraceDeref() function ➜ api.ODCheckerLocationTrace
De-reference the locationTrace array. Use this before adding a value to the array
View Parameters (1)
trace: type ➜api.ODCheckerLocationTrace- Parameter Description Lorem Ipsum.
locationTraceToString() function ➜ string
Create a string from the location trace (path)
View Parameters (1)
trace: type ➜api.ODCheckerLocationTrace- Parameter Description Lorem Ipsum.
Defaults
We're still working on this part of the documentation!
Examples
We're still working on this part of the documentation!