API / geotoolkit / persistence / XmlDeserializationContext / XmlDeserializationContext
persistence.XmlDeserializationContext.XmlDeserializationContext
The deserialization context from XML
↳
XmlDeserializationContext
Methods
Constructors
• new XmlDeserializationContext(node?, owner?, registry?)
| Name | Type |
|---|---|
Optional node | Node |
Optional owner | any |
Optional registry | Registry |
DeserializationContext.constructor
Methods
▸ addReference(id, reference): void
Register instance of the object
| Name | Type | Description |
|---|---|---|
id | string | unique id of the object |
reference | any | instance of the deserialised class |
void
DeserializationContext.addReference
▸ getCurrentObject(): any
Return the current object on the stack
any
DeserializationContext.getCurrentObject
▸ getObject(type, name, dest?): any
Get object
| Name | Type | Description |
|---|---|---|
type | string | type of the object |
name | string | name of the property |
Optional dest | any |
any
value
DeserializationContext.getObject
▸ getOptions(): Options
Returnы deserialization ooptions
deserialization ooptions
DeserializationContext.getOptions
▸ getReference(id): any
Get object by reference
| Name | Type | Description |
|---|---|---|
id | string | reference id |
any
DeserializationContext.getReference
▸ getRegistry(): Registry
Get registry of memento deserializers
DeserializationContext.getRegistry
▸ getValue(name, type?, dest?): any
Get value
| Name | Type | Description |
|---|---|---|
name | string | name of the property |
Optional type | string | optional type |
Optional dest | any |
any
value
DeserializationContext.getValue
▸ popCurrentObject(): any
Pop the current object from the stack
any
DeserializationContext.popCurrentObject
▸ 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
DeserializationContext.pushCurrentObject
▸ 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
DeserializationContext.queryChildren
▸ 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
DeserializationContext.requestObject
▸ setOptions(options): XmlDeserializationContext
Set deserialization options
| Name | Type | Description |
|---|---|---|
options | Options | deserialization options |
this