DatumTransformerSchema class abstract

An abstract class defining a transformer schema, which hold a set of DatumTransformers that can map from the native CARP namespace to another namespace. A DatumTransformerSchema must be implemented for each supported namespace.

Implementers

Constructors

DatumTransformerSchema()

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, DatumTransformer>
A map of transformers in this schema, indexed by the data type they can transform.
no setter

Methods

add(String type, DatumTransformer transformer) → void
Add a transformer to this schema based on its type mapped to its String.
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(Datum datum) Datum
Transform the datum according to the transformer for its data type.

Operators

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