本文整理了Java中org.onosproject.yang.compiler.datamodel.YangDeviationHolder
类的一些代码示例,展示了YangDeviationHolder
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangDeviationHolder
类的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangDeviationHolder
类名称:YangDeviationHolder
[英]Abstraction of deviation entity. It is used to abstract the data holders of deviation statement.
[中]偏差实体的抽象。它用于提取偏差报表的数据持有者。
代码示例来源:origin: org.onosproject/onos-yang-compiler-tool
/**
* Translates to java code corresponding to the YANG schema.
*
* @param pluginConfig YANG plugin config
* @throws IOException when fails to generate java code file the current node
*/
public void translateToJava(YangPluginConfig pluginConfig)
throws IOException {
List<YangNode> yangNodeSortedList = new LinkedList<>();
yangNodeSortedList.addAll(yangNodeSet);
sort(yangNodeSortedList);
for (YangNode node : yangNodeSortedList) {
if (node.isToTranslate() && !((YangDeviationHolder) node)
.isModuleForDeviation()) {
generateJavaCode(node, pluginConfig);
}
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
YangNode dstNode = deviation.getParent();
if (((YangDeviationHolder) dstNode).isDeviatedNodeCloned()) {
((YangDeviationHolder) dstNode).setDeviatedNodeCloned(true);
return dstNode;
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
try {
curNode.addChild(deviation);
((YangDeviationHolder) curNode).setModuleForDeviation(true);
} catch (DataModelException e) {
throw new ParserException(
内容来源于网络,如有侵权,请联系作者删除!