org.opendaylight.yangtools.yang.model.api.Module.getExtensionSchemaNodes()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(92)

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

Module.getExtensionSchemaNodes介绍

[英]Returns ExtensionDefinition instances which contain data from extension statements defined in the module.
[中]返回ExtensionDefinition实例,其中包含模块中定义的扩展语句中的数据。

代码示例

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

@Override
public Set<ExtensionDefinition> getExtensions() {
  final Set<ExtensionDefinition> extensions = new HashSet<>();
  for (Module m : getModules()) {
    extensions.addAll(m.getExtensionSchemaNodes());
  }
  return extensions;
}

代码示例来源:origin: opendaylight/yangtools

@Override
public Set<ExtensionDefinition> getExtensions() {
  final Set<ExtensionDefinition> extensions = new HashSet<>();
  for (Module m : getModules()) {
    extensions.addAll(m.getExtensionSchemaNodes());
  }
  return extensions;
}

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

private void emitBodyNodes(final Module input) {
  for (final ExtensionDefinition extension : input.getExtensionSchemaNodes()) {
    emitExtension(extension);
  }
  for (final FeatureDefinition definition : input.getFeatures()) {
    emitFeature(definition);
  }
  for (final IdentitySchemaNode identity : input.getIdentities()) {
    emitIdentity(identity);
  }
  for (final Deviation deviation : input.getDeviations()) {
    emitDeviation(deviation);
  }
  emitDataNodeContainer(input);
  for (final AugmentationSchemaNode augmentation : input.getAugmentations()) {
    emitAugment(augmentation);
  }
  for (final RpcDefinition rpc : input.getRpcs()) {
    emitRpc(rpc);
  }
  emitNotifications(input.getNotifications());
}

代码示例来源:origin: org.opendaylight.yangtools/binding-generator-impl

List<ExtensionDefinition> _extensionSchemaNodes = module.getExtensionSchemaNodes();
boolean _isNullOrEmpty_5 = IterableExtensions.isNullOrEmpty(_extensionSchemaNodes);
boolean _not_5 = (!_isNullOrEmpty_5);
 _builder.newLine();
 _builder.append("    ");
 List<ExtensionDefinition> _extensionSchemaNodes_1 = module.getExtensionSchemaNodes();
 CharSequence _writeExtensions = YangTemplate.writeExtensions(_extensionSchemaNodes_1);
 _builder.append(_writeExtensions, "    ");

相关文章