public class DefaultYangModelRegistry extends Object implements YangModelRegistry, org.onosproject.yang.model.SingleInstanceNodeContext
| Constructor and Description |
|---|
DefaultYangModelRegistry()
Creates an instance of default YANG schema registry.
|
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.yang.model.SchemaContext |
getChildContext(org.onosproject.yang.model.SchemaId schemaId) |
org.onosproject.yang.compiler.datamodel.YangSchemaNode |
getForNameSpace(String nameSpace,
boolean isForChildContext)
Returns schema node for the given name.
|
Set<org.onosproject.yang.model.YangModel> |
getModels()
Returns collection of all registered models.
|
org.onosproject.yang.model.SchemaContext |
getParentContext() |
org.onosproject.yang.model.SchemaId |
getSchemaId() |
org.onosproject.yang.model.DataNode.Type |
getType() |
void |
registerModel(ModelRegistrationParam param)
Registers a new model.
|
void |
unregisterModel(ModelRegistrationParam param)
Unregisters the specified model.
|
public DefaultYangModelRegistry()
public void registerModel(ModelRegistrationParam param)
YangModelRegistryregisterModel in interface YangModelRegistryparam - parameters having model to be registered with additional
informations provided by apppublic void unregisterModel(ModelRegistrationParam param)
YangModelRegistryunregisterModel in interface YangModelRegistryparam - parameters having model to be registered with additional
informations provided by apppublic Set<org.onosproject.yang.model.YangModel> getModels()
YangModelRegistrygetModels in interface YangModelRegistrypublic org.onosproject.yang.compiler.datamodel.YangSchemaNode getForNameSpace(String nameSpace, boolean isForChildContext)
nameSpace - name space of YANG fileisForChildContext - if the method call has arrived for child contextpublic org.onosproject.yang.model.SchemaContext getParentContext()
getParentContext in interface org.onosproject.yang.model.SchemaContextpublic org.onosproject.yang.model.DataNode.Type getType()
getType in interface org.onosproject.yang.model.SchemaContextpublic org.onosproject.yang.model.SchemaId getSchemaId()
getSchemaId in interface org.onosproject.yang.model.SchemaContextpublic org.onosproject.yang.model.SchemaContext getChildContext(org.onosproject.yang.model.SchemaId schemaId)
getChildContext in interface org.onosproject.yang.model.SingleInstanceNodeContextCopyright © 2017. All rights reserved.