+ private static void resolveActions(final DataNodeContainer parent, final Module module,
+ final SchemaContext schemaContext, final boolean verboseClassComments,
+ Map<String, Map<String, GeneratedTypeBuilder>> genTypeBuilders, final Map<Module, ModuleContext> genCtx,
+ TypeProvider typeProvider, final BindingNamespaceType namespaceType) {
+ Preconditions.checkNotNull(parent, "Parent should not be NULL.");
+ final Collection<DataSchemaNode> potentials = parent.getChildNodes();
+ for (DataSchemaNode potential : potentials) {
+ if (resolveDataSchemaNodesCheck(module, schemaContext,potential)) {
+ BindingNamespaceType namespaceType1 = namespaceType;
+ if (namespaceType.equals(BindingNamespaceType.Data)) {
+ if (potential instanceof GroupingDefinition) {
+ namespaceType1 = BindingNamespaceType.Grouping;
+ }
+ }
+
+ if (potential instanceof ActionNodeContainer) {
+ final Set<ActionDefinition> actions = ((ActionNodeContainer) potential).getActions();
+ for (ActionDefinition action : actions) {
+ genCtx.get(module).addTopLevelNodeType(resolveOperation(potential, action, module,
+ schemaContext, verboseClassComments, genTypeBuilders, genCtx, typeProvider, true,
+ namespaceType1));
+ }
+ }
+
+ if (potential instanceof DataNodeContainer) {
+ resolveActions((DataNodeContainer) potential, module, schemaContext, verboseClassComments,
+ genTypeBuilders, genCtx, typeProvider, namespaceType1);
+ }
+ }
+ }
+ }
+