gpt4 book ai didi

org.onosproject.yangutils.datamodel.YangReferenceResolver类的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 08:41:31 27 4
gpt4 key购买 nike

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

YangReferenceResolver介绍

[英]Abstraction of YANG dependency resolution information. Abstracted to obtain the resolution information.
[中]杨依赖解析信息的抽象。提取以获取分辨率信息。

代码示例

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

.getParsedDataStack().peek();
try {
  resolver.resolveSelfFileLinking(YANG_IF_FEATURE);
  resolver.resolveSelfFileLinking(YANG_USES);
  resolver.resolveSelfFileLinking(YANG_DERIVED_DATA_TYPE);
  resolver.resolveSelfFileLinking(YANG_LEAFREF);
  resolver.resolveSelfFileLinking(YANG_BASE);
  resolver.resolveSelfFileLinking(YANG_IDENTITYREF);
} catch (DataModelException e) {
  LinkerException linkerException = new LinkerException(e.getMessage());

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

resolutionNode.addToResolutionList(resolutionInfo,
      ResolvableType.YANG_DERIVED_DATA_TYPE);
} else if (resolutionInfo.getEntityToResolveInfo()
    .getEntityToResolve() instanceof YangUses) {
  resolutionNode.addToResolutionList(resolutionInfo,
      ResolvableType.YANG_USES);
} else if (resolutionInfo.getEntityToResolveInfo()
    .getEntityToResolve() instanceof YangAugment) {
  resolutionNode.addToResolutionList(resolutionInfo,
      ResolvableType.YANG_AUGMENT);
} else if (resolutionInfo.getEntityToResolveInfo()
    .getEntityToResolve() instanceof YangIfFeature) {
  resolutionNode.addToResolutionList(resolutionInfo,
      ResolvableType.YANG_IF_FEATURE);
} else if (resolutionInfo.getEntityToResolveInfo()
    .getEntityToResolve() instanceof YangLeafRef) {
  resolutionNode.addToResolutionList(resolutionInfo,
      ResolvableType.YANG_LEAFREF);
} else if (resolutionInfo.getEntityToResolveInfo().getEntityToResolve() instanceof YangBase) {
  resolutionNode.addToResolutionList(resolutionInfo, ResolvableType.YANG_BASE);
} else if (resolutionInfo.getEntityToResolveInfo().getEntityToResolve() instanceof YangIdentityRef) {
  resolutionNode.addToResolutionList(resolutionInfo, ResolvableType.YANG_IDENTITYREF);
} else if (resolutionInfo.getEntityToResolveInfo()
    .getEntityToResolve() instanceof YangCompilerAnnotation) {
  resolutionNode.addToResolutionList(resolutionInfo,
      ResolvableType.YANG_COMPILER_ANNOTATION);

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

prefix.equals(((YangReferenceResolver) root).getPrefix())) {
prefixMap.put(prefix, root.getName());
return;

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

.resolveSelfFileLinking(ResolvableType.YANG_IF_FEATURE);
  ((YangReferenceResolver) listener.getParsedDataStack().peek())
      .resolveSelfFileLinking(ResolvableType.YANG_USES);
  ((YangReferenceResolver) listener.getParsedDataStack().peek())
      .resolveSelfFileLinking(ResolvableType.YANG_DERIVED_DATA_TYPE);
  ((YangReferenceResolver) listener.getParsedDataStack().peek())
      .resolveSelfFileLinking(ResolvableType.YANG_LEAFREF);
  ((YangReferenceResolver) listener.getParsedDataStack().peek())
      .resolveSelfFileLinking(ResolvableType.YANG_BASE);
  ((YangReferenceResolver) listener.getParsedDataStack().peek())
      .resolveSelfFileLinking(ResolvableType.YANG_IDENTITYREF);
} catch (DataModelException e) {
  LinkerException linkerException = new LinkerException(e.getMessage());

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

try {
  ((YangReferenceResolver) yangNode)
      .resolveSelfFileLinking(YANG_DERIVED_DATA_TYPE);
  ((YangReferenceResolver) yangNode)
      .resolveSelfFileLinking(YANG_IDENTITYREF);
} catch (DataModelException e) {
  printLog(e.getFileName(), e.getLineNumber(), e

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