public class DataNodeJsonVisitor extends Object implements DataNodeVisitor
| Constructor and Description |
|---|
DataNodeJsonVisitor(JsonBuilder jb,
org.onosproject.yang.runtime.YangSerializerContext context)
Creates an instance of data node JSON visitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterDataNode(org.onosproject.yang.model.DataNode dataNode,
DataNodeSiblingPositionType siblingType)
Enters the data node by the visitor.
|
void |
exitDataNode(org.onosproject.yang.model.DataNode dataNode,
DataNodeSiblingPositionType siblingType)
Exits the data node by the visitor.
|
public DataNodeJsonVisitor(JsonBuilder jb, org.onosproject.yang.runtime.YangSerializerContext context)
jb - json buildercontext - yang serializer contextpublic void enterDataNode(org.onosproject.yang.model.DataNode dataNode,
DataNodeSiblingPositionType siblingType)
DataNodeVisitorenterDataNode in interface DataNodeVisitordataNode - data node which the tree walker visitssiblingType - indicates whether the data node the the first
or last sibling instance of a multi-instance nodepublic void exitDataNode(org.onosproject.yang.model.DataNode dataNode,
DataNodeSiblingPositionType siblingType)
DataNodeVisitorexitDataNode in interface DataNodeVisitordataNode - data node which the tree walker finishes the visitsiblingType - indicates whether the data node the the first
or last sibling instance of a multi-instance nodeCopyright © 2018. All rights reserved.