API / geotoolkit / welllog / widgets / persistence / Registry / Registry
persistence.Registry.Registry
The implementation of the default serializer registry for WellLogWidgets
↳
Registry
Constructors
Methods
▸ addMapping(shortName, className): void
Add mapping, which class will be used during deserialization
| Name | Type | Description |
|---|---|---|
shortName | string | short name to serialize |
className | string | class name |
void
▸ addSerializer(type, serializer): void
Add serializer
Throws
Error type is null
| Name | Type | Description |
|---|---|---|
type | string | type of the serializer |
serializer | ObjectSerializer | serializer |
void
▸ getClassName(): string
string
▸ getSerializer(type): ObjectSerializer
Return serializer for the specified type
| Name | Type | Description |
|---|---|---|
type | string | { getClassName: () => string } | serializer for the specified type |
▸ removeSerializer(type): void
Remove serializer
Throws
Error type is null
| Name | Type | Description |
|---|---|---|
type | string | type of the serializer |
void
▸ Static getClassName(): string
string
▸ Static getInstance(): Registry
Return instance of the default registry
registry