public final class DefaultYdtAppContext<T extends AppData> extends Object implements YdtAppContext
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(YdtAppContext newChild)
Adds a last child to ydt application data tree.
|
void |
addDeleteNode(YdtNode node)
Adds the ydt node with operation type delete in module delete node list.
|
AppData |
getAppData()
Returns the app data for current context.
|
org.onosproject.yangutils.datamodel.YangSchemaNode |
getAugmentingSchemaNode()
Returns the YangSchemaNode of augmenting application.
|
List<YdtContext> |
getDeleteNodes()
Returns the list of nodes with operation type delete.
|
YdtAppContext |
getFirstChild()
Returns the context of first child.
|
YdtAppContext |
getLastChild()
Returns the context of last child.
|
YdtContext |
getModuleContext()
Returns application's root ydtContext.
|
YdtAppContext |
getNextSibling()
Returns the context of next sibling.
|
YdtAppNodeOperationType |
getOperationType()
Returns the app tree operation type.
|
YdtAppContext |
getParent()
Returns the context of parent node.
|
YdtAppContext |
getPreviousSibling()
Returns the context of previous sibling.
|
org.onosproject.yangutils.datamodel.YangSchemaNode |
getYangSchemaNode()
Returns the yang schema for requested node.
|
void |
setAppData(YdtNode moduleNode,
org.onosproject.yangutils.datamodel.YangSchemaNode augmentNode)
Sets the application data for given request.
|
void |
setAugmentingSchemaNode(org.onosproject.yangutils.datamodel.YangSchemaNode schemaNode)
Sets the YangSchemaNode of augmenting application root node.
|
void |
setNextSibling(YdtAppContext context)
Sets the context of next sibling.
|
void |
setOperationType(YdtAppNodeOperationType opType)
Set the app tree operation type.
|
void |
setParent(YdtAppContext parent)
Sets the context of parent node.
|
void |
setPreviousSibling(YdtAppContext context)
Sets the context of previous sibling.
|
void |
updateAppOperationType(YdtContextOperationType ydtOpType)
Updates the app tree operation type.
|
public void updateAppOperationType(YdtContextOperationType ydtOpType)
YdtAppContextIf earlier operation type was OTHER_EDIT and now operation type came as DELETE_ONLY or vice-versa, then update operation type to BOTH.
updateAppOperationType in interface YdtAppContextydtOpType - ydt current context operation typepublic void setAppData(YdtNode moduleNode, org.onosproject.yangutils.datamodel.YangSchemaNode augmentNode)
YdtAppContextsetAppData in interface YdtAppContextmoduleNode - module node of requested appaugmentNode - augmented schema node of requested contextpublic AppData getAppData()
YdtAppContextgetAppData in interface YdtAppContextpublic YdtAppContext getParent()
YdtAppContextgetParent in interface YdtAppContextpublic void setParent(YdtAppContext parent)
YdtAppContextsetParent in interface YdtAppContextparent - nodepublic YdtAppContext getFirstChild()
YdtAppContextgetFirstChild in interface YdtAppContextpublic YdtAppContext getNextSibling()
YdtAppContextgetNextSibling in interface YdtAppContextpublic void setNextSibling(YdtAppContext context)
YdtAppContextsetNextSibling in interface YdtAppContextcontext - nodepublic YdtAppContext getPreviousSibling()
YdtAppContextgetPreviousSibling in interface YdtAppContextpublic void setPreviousSibling(YdtAppContext context)
YdtAppContextsetPreviousSibling in interface YdtAppContextcontext - nodepublic YdtAppNodeOperationType getOperationType()
YdtAppContextgetOperationType in interface YdtAppContextpublic void setOperationType(YdtAppNodeOperationType opType)
YdtAppContextsetOperationType in interface YdtAppContextopType - app tree operation typepublic List<YdtContext> getDeleteNodes()
YdtAppContextgetDeleteNodes in interface YdtAppContextpublic void addDeleteNode(YdtNode node)
YdtAppContextaddDeleteNode in interface YdtAppContextnode - ydt node with operation type delete/removepublic YdtContext getModuleContext()
YdtAppContextgetModuleContext in interface YdtAppContextpublic org.onosproject.yangutils.datamodel.YangSchemaNode getAugmentingSchemaNode()
YdtAppContextgetAugmentingSchemaNode in interface YdtAppContextpublic void setAugmentingSchemaNode(org.onosproject.yangutils.datamodel.YangSchemaNode schemaNode)
YdtAppContextsetAugmentingSchemaNode in interface YdtAppContextschemaNode - YangSchemaNode of augmenting application modulepublic YdtAppContext getLastChild()
YdtAppContextgetLastChild in interface YdtAppContextpublic void addChild(YdtAppContext newChild)
YdtAppContextaddChild in interface YdtAppContextnewChild - name of child to be addedpublic org.onosproject.yangutils.datamodel.YangSchemaNode getYangSchemaNode()
YdtAppContextgetYangSchemaNode in interface YdtAppContext