本文整理了Java中org.opendaylight.yangtools.yang.model.api.Module.getGroupings()
方法的一些代码示例,展示了Module.getGroupings()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getGroupings()
方法的具体详情如下:
包路径:org.opendaylight.yangtools.yang.model.api.Module
类名称:Module
方法名:getGroupings
暂无
代码示例来源:origin: opendaylight/yangtools
@Override
public Set<GroupingDefinition> getGroupings() {
final Set<GroupingDefinition> result = new LinkedHashSet<>();
for (Module module : getModules()) {
result.addAll(module.getGroupings());
}
return Collections.unmodifiableSet(result);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-model-util
@Override
public Set<GroupingDefinition> getGroupings() {
final Set<GroupingDefinition> result = new LinkedHashSet<>();
for (Module module : getModules()) {
result.addAll(module.getGroupings());
}
return Collections.unmodifiableSet(result);
}
代码示例来源:origin: org.opendaylight.controller/sal-rest-connector
public DataSchemaNode getRestconfModuleErrorsSchemaNode() {
final Module restconfModule = getRestconfModule();
if (restconfModule == null) {
return null;
}
final Set<GroupingDefinition> groupings = restconfModule.getGroupings();
final Iterable<GroupingDefinition> filteredGroups = Iterables.filter(groupings, ERRORS_GROUPING_FILTER);
final GroupingDefinition restconfGrouping = Iterables.getFirst(filteredGroups, null);
final List<DataSchemaNode> instanceDataChildrenByName = findInstanceDataChildrenByName(restconfGrouping,
Draft02.RestConfModule.ERRORS_CONTAINER_SCHEMA_NODE);
return Iterables.getFirst(instanceDataChildrenByName, null);
}
代码示例来源:origin: org.opendaylight.controller/sal-rest-connector
final Set<GroupingDefinition> groupings = restconfModule.getGroupings();
final Iterable<GroupingDefinition> filteredGroups = Iterables.filter(groupings, GROUPING_FILTER);
final GroupingDefinition restconfGrouping = Iterables.getFirst(filteredGroups, null);
代码示例来源:origin: org.opendaylight.yangtools/binding-generator-impl
private void moduleToGenTypes(final Module m, final SchemaContext context) {
genCtx.put(m, new ModuleContext());
allTypeDefinitionsToGenTypes(m);
groupingsToGenTypes(m, m.getGroupings());
rpcMethodsToGenType(m);
allIdentitiesToGenTypes(m, context);
notificationsToGenType(m);
if (!m.getChildNodes().isEmpty()) {
final GeneratedTypeBuilder moduleType = moduleToDataType(m);
genCtx.get(m).addModuleNode(moduleType);
final String basePackageName = BindingMapping.getRootPackageName(m.getQNameModule());
resolveDataSchemaNodes(m, basePackageName, moduleType, moduleType, m.getChildNodes());
}
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-generator-impl
private ModuleContext moduleToGenTypes(final Module module) {
final ModuleContext context = new ModuleContext(module);
genCtx.put(module.getQNameModule(), context);
allTypeDefinitionsToGenTypes(context);
groupingsToGenTypes(context, module.getGroupings());
rpcMethodsToGenType(context);
allIdentitiesToGenTypes(context);
notificationsToGenType(context);
if (!module.getChildNodes().isEmpty()) {
final GeneratedTypeBuilder moduleType = moduleToDataType(context);
context.addModuleNode(moduleType);
resolveDataSchemaNodes(context, moduleType, moduleType, module.getChildNodes());
}
return context;
}
代码示例来源:origin: org.opendaylight.yangtools/binding-generator-impl
Set<GroupingDefinition> _groupings = module.getGroupings();
boolean _isNullOrEmpty_2 = IterableExtensions.isNullOrEmpty(_groupings);
boolean _not_2 = (!_isNullOrEmpty_2);
_builder.newLine();
_builder.append(" ");
Set<GroupingDefinition> _groupings_1 = module.getGroupings();
CharSequence _writeGroupingDefs = YangTemplate.writeGroupingDefs(_groupings_1);
_builder.append(_writeGroupingDefs, " ");
内容来源于网络,如有侵权,请联系作者删除!