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.
Constructors
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.
NameSpacefor 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
transformerfor data of typeformat, 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
datausing the transformer for its data type.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited