Interface ConfigSchema.Extractor<T>
- Type Parameters:
T- the typed config model.
- Enclosing class:
ConfigSchema<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Turns config JSON into a typed model. Implementations must be pure: they are called both for
runtime deserialization and, on already-validated copies, to surface semantic problems during
ConfigSchema.validate(JsonElement).-
Method Summary
-
Method Details
-
extract
T extract(com.inductiveautomation.ignition.common.gson.JsonObject config) throws ConfigurationException Parses the config object.- Parameters:
config- the config object to parse.- Returns:
- the typed config model.
- Throws:
ConfigurationException- if the config is semantically invalid.
-