FsceneComponentRegistry class

A registry of ComponentCodecs, keyed by component type name.

Realization looks a codec up by ComponentSpec.type; serialization tries each codec until one claims the component. Unknown components are skipped (with the caller deciding how to report it) rather than failing the load.

Constructors

FsceneComponentRegistry()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

codecFor(String type) ComponentCodec?
The codec for type, or null when none is registered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
realize(ComponentSpec spec, RealizeContext context) Component?
Realizes spec into a live component, or returns null when no codec is registered for its type.
register(ComponentCodec codec) → void
Registers codec, replacing any existing codec for its type.
serialize(Component component, SerializeContext context) ComponentSpec?
Serializes component using the first codec that claims it, or returns null when none does.
toString() String
A string representation of this object.
inherited

Operators

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