public class YangApplicationBroker extends Object
| Constructor and Description |
|---|
YangApplicationBroker(YangSchemaRegistry schemaRegistry)
Creates a new YANG application broker.
|
| Modifier and Type | Method and Description |
|---|---|
protected YdtContext |
buildDeleteTree(List<YdtContext> deleteNodes)
Builds delete tree for list of delete nodes.
|
protected void |
processAugmentedNodesForDelete(YdtContext deleteTree,
YdtAppContext appContext)
Traverses YDT delete tree and if any YDT node is augmented then
updates the YDT delete tree with augment nodes.
|
protected void |
processAugmentForChildNode(YdtAppContext curAppContext,
org.onosproject.yangutils.datamodel.YangNode schemaNode)
Traverses data model tree and if any node is augmented, then
adds child to current application context.
|
YdtResponse |
processEdit(YdtBuilder ydtWorkBench)
Processes edit request of a NBI protocol.
|
YdtResponse |
processOperation(YdtBuilder ydtWorkBench)
Processes operation request of a NBI protocol.
|
YdtResponse |
processQuery(YdtBuilder ydtWorkBench)
Processes query request of a NBI protocol.
|
void |
setAugGenMethodSet(Set<String> augGenMethodSet)
Sets the augment setter method name.
|
public YangApplicationBroker(YangSchemaRegistry schemaRegistry)
schemaRegistry - YANG schema registrypublic YdtResponse processQuery(YdtBuilder ydtWorkBench) throws YabException
ydtWorkBench - YANG request work benchYabException - violation in execution of YABpublic YdtResponse processEdit(YdtBuilder ydtWorkBench) throws CloneNotSupportedException, YabException
ydtWorkBench - YANG request work benchYabException - violation in execution of YABCloneNotSupportedException - clone is not supportedpublic YdtResponse processOperation(YdtBuilder ydtWorkBench) throws YabException
ydtWorkBench - YANG request work benchYabException - violation in execution of YABprotected void processAugmentForChildNode(YdtAppContext curAppContext, org.onosproject.yangutils.datamodel.YangNode schemaNode)
curAppContext - current application contextschemaNode - YANG data model node, either module or augmentprotected void processAugmentedNodesForDelete(YdtContext deleteTree, YdtAppContext appContext)
deleteTree - YDT delete treeappContext - application contextprotected YdtContext buildDeleteTree(List<YdtContext> deleteNodes) throws CloneNotSupportedException
deleteNodes - list of delete nodesCloneNotSupportedException - clone is not supported