DataTransformerSchema class abstract

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.

Implementers

Constructors

DataTransformerSchema()

Properties

hashCode → int
The hash code for this object.
no setterinherited
namespace → String
The type of namespace that this package can transform to (see e.g. NameSpace for pre-defined namespaces).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transformers → Map<String, DataTransformer>
A map of transformers in this schema, indexed by the data type they can transform.
no setter

Methods

add(String format, DataTransformer transformer) → void
Adds a transformer for data of type format, replacing any existing one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRegister() → void
Callback method when this schema is being registered.
toString() → String
A string representation of this object.
inherited
transform(Data data) → Data
Transforms data using the transformer for its data type.

Operators

operator ==(Object other) → bool
The equality operator.
inherited