DataTransformerSchema
A set of DataTransformers that map data from the CARP namespace to another namespace, indexed by data type.
Implement one for each supported namespace and register it in the DataTransformerSchemaRegistry. The schema used for a study is selected by DataEndPoint.dataFormat or SmartphoneStudyProtocol.privacySchemaName.
Constructors
DataTransformerSchema
Properties
namespace
The type of namespace that this package can transform to (see e.g. NameSpace for pre-defined namespaces).
transformers
A map of transformers in this schema, indexed by the data type they can transform.
Methods
add
- String format,
- DataTransformer transformer
Adds a transformer for data of type format, replacing any existing one.
onRegister
Callback method when this schema is being registered.
transform
Transforms data using the transformer for its data type.
Returns data unchanged if no transformer is found.