gpt4 book ai didi

org.onosproject.yang.compiler.datamodel.YangUniqueHolder类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 11:09:31 27 4
gpt4 key购买 nike

本文整理了Java中org.onosproject.yang.compiler.datamodel.YangUniqueHolder类的一些代码示例,展示了YangUniqueHolder类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangUniqueHolder类的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangUniqueHolder
类名称:YangUniqueHolder

YangUniqueHolder介绍

[英]Abstraction of unique entity. It is used to abstract the data holders of unique.
[中]唯一实体的抽象。它用于提取unique的数据持有者。

代码示例

代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel

throws DataModelException {
YangLeaf leaf;
List<List<YangAtomicPath>> uniques = holder.getPathList();
if (uniques != null && !uniques.isEmpty()) {
  for (List<YangAtomicPath> path : uniques) {
      throw new DataModelException(E_INVALID_REF);
    holder.addUniqueLeaf(leaf);
  List<YangLeaf> leaves = holder.getUniqueLeaves();
  Map<YangLeaf, Integer> map = new HashMap<>();
  for (YangLeaf lf : leaves) {

代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel

.getPathList().listIterator();
while (uniqueList.hasNext()) {
  ((YangUniqueHolder) targetNode).addUnique(uniqueList.next());

代码示例来源:origin: org.onosproject/onos-yang-compiler-parser

/**
 * Adds the unique holder to the module or sub-module node.
 *
 * @param holder unique holder
 */
public static void addUniqueHolderToRoot(YangUniqueHolder holder) {
  List<List<YangAtomicPath>> uniques = holder.getPathList();
  if (uniques != null && !uniques.isEmpty()) {
    YangReferenceResolver root = (YangReferenceResolver) getRootNode(
        (YangNode) holder);
    root.addToUniqueHolderList(holder);
  }
}

代码示例来源:origin: org.onosproject/onos-yang-compiler-parser

List<YangAtomicPath> atomicPath = validateUniqueInList(
    holder, val, ctx);
holder.addUnique(atomicPath);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com