gpt4 book ai didi

org.onosproject.yang.compiler.datamodel.YangAtomicPath.setNodeIdentifier()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 06:49:31 26 4
gpt4 key购买 nike

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

YangAtomicPath.setNodeIdentifier介绍

[英]Sets the node identifier.
[中]设置节点标识符。

代码示例

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

/**
 * Returns the remaining path after parsing and processing an atomic
 * content which doesn't have path-predicate.
 *
 * @param path       leaf-ref path
 * @param atomicList atomic content list
 * @param pathType   yang construct for creating error message
 * @param pathCtx    yang construct's context to get the line number
 *                   and character position
 * @return remaining path after parsing one atomic content
 */
public static String getPath(String path, List<YangAtomicPath> atomicList,
               YangConstructType pathType,
               PathStatementContext pathCtx) {
  String comPath = path;
  String nodeId;
  if (comPath.contains(SLASH_FOR_STRING)) {
    nodeId = comPath.substring(0, comPath.indexOf(CHAR_OF_SLASH));
    comPath = comPath.substring(comPath.indexOf(CHAR_OF_SLASH));
  } else {
    nodeId = comPath;
    comPath = null;
  }
  YangNodeIdentifier validNodeId =
      getValidNodeIdentifier(nodeId, pathType, pathCtx);
  YangAtomicPath atomicPath = new YangAtomicPath();
  atomicPath.setNodeIdentifier(validNodeId);
  atomicList.add(atomicPath);
  return comPath;
}

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

getValidNodeIdentifier(relPath, pathType, pathCtx);
YangAtomicPath atomicPath = new YangAtomicPath();
atomicPath.setNodeIdentifier(nodeId);
atomicList.add(atomicPath);

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

pathType,
                            pathCtx, yangLeafRef);
atomicPath.setNodeIdentifier(validId);
atomicPath.setPathPredicatesList(predicates);
atomics.add(atomicPath);

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

YangNodeIdentifier nodeId = getValidNodeIdentifier(value, PATH_DATA);
YangAtomicPath atomicPath = new YangAtomicPath();
atomicPath.setNodeIdentifier(nodeId);
finalListForAbsolute.add(atomicPath);

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

yangNodeIdentifier = getValidNodeIdentifier(nodeIdentifiers, yangConstructType, ctx);
YangAtomicPath yangAbsPath = new YangAtomicPath();
yangAbsPath.setNodeIdentifier(yangNodeIdentifier);
targetNodes.add(yangAbsPath);

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

YangAtomicPath atomicPath = new YangAtomicPath();
YangNodeIdentifier id = getValidNodeIdentifier(uniVal, type, ctx);
atomicPath.setNodeIdentifier(id);
pathList.add(atomicPath);
if (id.getPrefix() != null &&

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