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
Get the singleton instance of the DataTransformerSchemaRegistry.
Properties
schemas
The map between the namespace of a transformer schema and the schema.
Methods
lookup
- String namespace
The transformer schema for namespace, or null if none is registered.
register
- DataTransformerSchema schema
Registers schema under its namespace, replacing any existing one, and calls DataTransformerSchema.onRegister.