API / geotoolkit / persistence / DeserializationContext / DeserializationContext
persistence.DeserializationContext.DeserializationContext
The deserialization context
DeserializationContext
Constructors
Methods
Methods
▸ Abstract addReference(id, object): void
Register instance of the object
| Name | Type | Description |
|---|---|---|
id | string | unique id of the object |
object | any | instance of the deserialised class |
void
▸ Abstract getCurrentObject(): any
Return the current object on the stack
any
▸ Abstract getObject(type?, name?, dest?): any
Get object
| Name | Type | Description |
|---|---|---|
Optional type | string | type of the object |
Optional name | string | name of the property |
Optional dest | any |
any
value
▸ Abstract getOptions(): Options
Return deserialization options
IDeserializationContext.getOptions
▸ Abstract getReference(id): any
Get object by reference
| Name | Type | Description |
|---|---|---|
id | string | reference id |
any
▸ Abstract getRegistry(): Registry
Get registry of memento deserializers
▸ Abstract getValue(name?, type?, dest?): any
Get value
| Name | Type | Description |
|---|---|---|
Optional name | string | name of the property |
Optional type | string | optional type |
Optional dest | any |
any
value
▸ Abstract popCurrentObject(): any
Pop the current object from the stack
any
▸ Abstract pushCurrentObject(object): void
Push the current deserialized object. This method can be used if it is necessary to provide the existing object for deserialization
| Name | Type | Description |
|---|---|---|
object | any | instance of the deserialised class |
void
▸ Abstract queryChildren(callback, propertyName?): void
Enumerate each child property
| Name | Type | Description |
|---|---|---|
callback | (property: string, context: DeserializationContext) => void | function called by each object child |
Optional propertyName | string | optional property name |
void
▸ Abstract requestObject(id, callback): void
Request object
| Name | Type | Description |
|---|---|---|
id | string | unique id of the object |
callback | (value: any) => void | function contains parameter object that can be requested |
void