@Override public Set<GroupingDefinition> getGroupings() { final Set<GroupingDefinition> result = new LinkedHashSet<>(); for (Module module : getModules()) { result.addAll(module.getGroupings()); } return Collections.unmodifiableSet(result); }
@Override public Set<GroupingDefinition> getGroupings() { final Set<GroupingDefinition> result = new LinkedHashSet<>(); for (Module module : getModules()) { result.addAll(module.getGroupings()); } return Collections.unmodifiableSet(result); }
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); }
final Set<GroupingDefinition> groupings = restconfModule.getGroupings(); final Iterable<GroupingDefinition> filteredGroups = Iterables.filter(groupings, GROUPING_FILTER); final GroupingDefinition restconfGrouping = Iterables.getFirst(filteredGroups, null);
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()); } }
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; }
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, " ");