本文整理了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>
[英]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();
}
内容来源于网络,如有侵权,请联系作者删除!