public interface 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 schemaNode)
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 nextSibling)
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 preSibling)
Sets the context of previous sibling.
|
void |
updateAppOperationType(YdtContextOperationType opType)
Updates the app tree operation type.
|
YdtAppContext getParent()
void setParent(YdtAppContext parent)
parent - nodeYdtAppContext getFirstChild()
YdtAppContext getLastChild()
YdtAppContext getNextSibling()
void setNextSibling(YdtAppContext nextSibling)
nextSibling - nodeYdtAppContext getPreviousSibling()
void setPreviousSibling(YdtAppContext preSibling)
preSibling - nodeYdtAppNodeOperationType getOperationType()
void setOperationType(YdtAppNodeOperationType opType)
opType - app tree operation typeList<YdtContext> getDeleteNodes()
void addDeleteNode(YdtNode node)
node - ydt node with operation type delete/removeYdtContext getModuleContext()
org.onosproject.yangutils.datamodel.YangSchemaNode getAugmentingSchemaNode()
void setAugmentingSchemaNode(org.onosproject.yangutils.datamodel.YangSchemaNode schemaNode)
schemaNode - YangSchemaNode of augmenting application modulevoid addChild(YdtAppContext newChild)
newChild - name of child to be addedvoid updateAppOperationType(YdtContextOperationType opType)
If earlier operation type was OTHER_EDIT and now operation type came as DELETE_ONLY or vice-versa, then update operation type to BOTH.
opType - ydt current context operation typevoid setAppData(YdtNode moduleNode, org.onosproject.yangutils.datamodel.YangSchemaNode schemaNode)
moduleNode - module node of requested appschemaNode - augmented schema node of requested contextAppData getAppData()
org.onosproject.yangutils.datamodel.YangSchemaNode getYangSchemaNode()