@Beta public final class BindingSchemaContextUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<org.opendaylight.yangtools.yang.model.api.DataNodeContainer> |
findDataNodeContainer(org.opendaylight.yangtools.yang.model.api.SchemaContext ctx,
InstanceIdentifier<?> path)
Find data node container by binding path in schema context.
|
static Optional<org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> |
findInstantiatedCase(org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode instantiatedChoice,
org.opendaylight.yangtools.yang.model.api.CaseSchemaNode originalDefinition)
Find choice case node in choice schema node.
|
static Optional<org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode> |
findInstantiatedChoice(org.opendaylight.yangtools.yang.model.api.DataNodeContainer parent,
Class<?> choiceClass)
Find choice schema node in parent by binding class.
|
static Optional<org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode> |
findInstantiatedChoice(org.opendaylight.yangtools.yang.model.api.DataNodeContainer ctxNode,
org.opendaylight.yangtools.yang.common.QName choiceName)
Find choice schema node in parent node by qname of choice.
|
public static Optional<org.opendaylight.yangtools.yang.model.api.DataNodeContainer> findDataNodeContainer(org.opendaylight.yangtools.yang.model.api.SchemaContext ctx, InstanceIdentifier<?> path)
ctx
- - schema contextpath
- - binding pathpublic static Optional<org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode> findInstantiatedChoice(org.opendaylight.yangtools.yang.model.api.DataNodeContainer parent, Class<?> choiceClass)
parent
- - choice parentchoiceClass
- - choice binding classpublic static Optional<org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode> findInstantiatedChoice(org.opendaylight.yangtools.yang.model.api.DataNodeContainer ctxNode, org.opendaylight.yangtools.yang.common.QName choiceName)
ctxNode
- - parent nodechoiceName
- - qname of choicepublic static Optional<org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> findInstantiatedCase(org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode instantiatedChoice, org.opendaylight.yangtools.yang.model.api.CaseSchemaNode originalDefinition)
instantiatedChoice
- - choiceoriginalDefinition
- - choice caseCopyright © 2019 OpenDaylight. All rights reserved.