public interface YangModelRegistry
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.yang.model.YangModel |
getModel(String id)
Returns YANG model for given model id.
|
Set<org.onosproject.yang.model.YangModel> |
getModels()
Returns collection of all registered models.
|
org.onosproject.yang.model.YangModule |
getModule(org.onosproject.yang.model.YangModuleId id)
Returns YANG module for given YANG module id.
|
void |
registerAnydataSchema(org.onosproject.yang.model.ModelObjectId id,
org.onosproject.yang.model.ModelObjectId id1)
Registers the given generated node referenced by given model object
identifier under provided anydata model object identifier.
|
void |
registerModel(ModelRegistrationParam param)
Registers a new model.
|
void |
unregisterAnydataSchema(Class id,
Class id1)
Unregisters the given generated node class under provided anydata class.
|
void |
unregisterModel(ModelRegistrationParam param)
Unregisters the specified model.
|
void registerModel(ModelRegistrationParam param) throws IllegalArgumentException
param - parameters having model to be registered with additional
information provided by appIllegalArgumentException - when requested model with provided
identifier is already registered or
not validvoid registerAnydataSchema(org.onosproject.yang.model.ModelObjectId id,
org.onosproject.yang.model.ModelObjectId id1)
throws IllegalArgumentException
id - identifier to reference anydata container under which
application is expecting the dataid1 - identifier to reference the node defined in YANG file which
application can send as content or child nodes under anydataIllegalArgumentException - when provided identifier is not
not validvoid unregisterAnydataSchema(Class id, Class id1) throws IllegalArgumentException
id - identifier to reference anydata container under which
application has registered the schemaid1 - identifier to reference the node defined in YANG file which
application can send as content or child nodes under anydataIllegalArgumentException - when provided identifier is not
not validvoid unregisterModel(ModelRegistrationParam param)
param - parameters having model to be registered with additional
information provided by appSet<org.onosproject.yang.model.YangModel> getModels()
org.onosproject.yang.model.YangModel getModel(String id)
id - model identifierorg.onosproject.yang.model.YangModule getModule(org.onosproject.yang.model.YangModuleId id)
id - module identifierCopyright © 2018. All rights reserved.