gpt4 book ai didi

org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.YangIdentifier.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 06:00:49 28 4
gpt4 key购买 nike

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

YangIdentifier.<init>介绍

[英]Creates a copy from Source Object.
[中]从源对象创建副本。

代码示例

代码示例来源:origin: org.opendaylight.mdsal.binding.model.ietf/rfc6991-ietf-yang-types

public static YangIdentifier getDefaultInstance(String defaultValue) {
  return new YangIdentifier(defaultValue);
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-yang-types-20130715

public static YangIdentifier getDefaultInstance(String defaultValue) {
  return new YangIdentifier(defaultValue);
}

代码示例来源:origin: org.opendaylight.coretutorials/openconfig-bgp

public static YangIdentifier getDefaultInstance(String defaultValue) {
  return new YangIdentifier(defaultValue);
}

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-yang-types-20130715

public static YangIdentifier getDefaultInstance(String defaultValue) {
  return new YangIdentifier(defaultValue);
}

代码示例来源:origin: org.opendaylight.netconf/mdsal-netconf-yang-library

private Submodules createSubmodulesForModule(final Module module) {
    final List<Submodule> submodulesList = Lists.newArrayList();
    for (final Module subModule : module.getSubmodules()) {
      final SubmoduleBuilder subModuleEntryBuilder = new SubmoduleBuilder();
      subModuleEntryBuilder.setName(new YangIdentifier(subModule.getName()))
          .setRevision(new OptionalRevision(SimpleDateFormatUtil.getRevisionFormat().format(subModule.getRevision())));
      submodulesList.add(subModuleEntryBuilder.build());
    }

    return  new SubmodulesBuilder().setSubmodule(submodulesList).build();
  }
}

代码示例来源:origin: org.opendaylight.netconf/mdsal-netconf-yang-library

private org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.library.rev160409.module.list.Module createModuleEntryFromModule(final Module module) {
  final ModuleBuilder moduleBuilder = new ModuleBuilder();
  // TODO Conformance type is always set to Implement value, but it should it really be like this?
  // TODO Add also deviations and features lists to module entries
  moduleBuilder.setName(new YangIdentifier(module.getName()))
      .setRevision(new OptionalRevision(SimpleDateFormatUtil.getRevisionFormat().format(module.getRevision())))
      .setNamespace(new Uri(module.getNamespace().toString()))
      .setConformanceType(ConformanceType.Implement)
      .setSubmodules(createSubmodulesForModule(module));
  return moduleBuilder.build();
}

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