...
Implementations of outward-facing protocols depend on the YANG runtime to serialize and deserialize their payloads and the dynamic Config subsystem will depend on the YANG runtime to serialize these objects for distribution and persistence.
...
Serializer Registry
This service is used for registering and unregistering the available data format serializers. YANG App activation registers the default XML/JSON serializers. User can override the existing registration or can register new data formats. In case of multiple registrations of same data format, last one will take into effect.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
void unregisterSerializer(YANGSerializer serializer) |
...
Model Registry
This API is used by schema aware application to register YANG model. Example:L3VPN application and also live compiler.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
void unregisterModel(ModelRegistrationParam param) |
...
Runtime Service
It is a service for encoding and decoding between internal and external model representation.
...
| Code Block | ||
|---|---|---|
| ||
CompositeStream encode(CompositeData internal, RuntimeContext context) |
...
ModelConverter Service
Model converter provides a mechanism for converting between DataNode and Model Object instances. It is capable of constructing model POJO objects from the DataNode,including any augmentations which may be present in the DataNode structure and creating immutable tree structure from a given POJO. This API mainly gives the following methods:
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
DataNode createDataNode(ModelObject) |
...
SchemaContext Provider
It returns an entity that provides schema context corresponding to a given resource identifier.
...
