Skip to content

DataTransformerSchemaRegistry

The registry of all DataTransformerSchemas, looked up by namespace.

A singleton. The CARP, OMH, FHIR, and default privacy schemas are registered on creation. Sampling packages add their transformers to these schemas, and the SmartphoneStudyController uses them to transform each measurement before it reaches the DataManager.

Constructors

DataTransformerSchemaRegistry

DataTransformerSchemaRegistry()

Get the singleton instance of the DataTransformerSchemaRegistry.

Properties

schemas

The map between the namespace of a transformer schema and the schema.

Methods

lookup

DataTransformerSchema? lookup(
  1. String namespace
)

The transformer schema for namespace, or null if none is registered.

register

void register(
  1. DataTransformerSchema schema
)

Registers schema under its namespace, replacing any existing one, and calls DataTransformerSchema.onRegister.