Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejava
titleTo unregister the specified serializer
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
languagejava
titleUnregister the specified model with parameters specifying any addtional information provided by the applciation.
 void unregisterModel(ModelRegistrationParam param) 

...

Runtime Service 

It is a service for encoding and decoding between internal and external model representation.

...

Code Block
languagejava
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
languagejava
titleProduces an immutable tree structure rooted at the returned DataNode using the supplied model POJO object
DataNode createDataNode(ModelObject)

...

SchemaContext Provider 

It returns an entity that provides schema context corresponding to a given resource identifier.

...