}
((DataNodeContainerBuilder) parent).addUsesNode(usesBuilder);
}
+ if(parent instanceof AugmentationSchemaBuilder) {
+ usesBuilder.setAugmenting(true);
+ usesBuilder.setParentAugment((AugmentationSchemaBuilder)parent);
+ }
+
allUsesNodes.add(usesBuilder);
return usesBuilder;
}
* Add child to parent. Method checks for duplicates and add given child
* node to parent. If node with same name is found, throws exception. If
* parent is null, child node will be added directly to module.
- *
+ *
* @param parent
* @param child
* @param childName
/**
* Adds child node <code>child</code> to the set of nodes child nodes.
- *
+ *
* The method reduces the complexity of the method
* {@link #addChildToParent(Builder, DataSchemaNodeBuilder, String)
* addChildToParent}.
- *
+ *
* @param child
* data schema node builder for child node
* @param childName
/**
* Adds child node <code>child</code> to the group of child nodes of the
* <code>parent</code>
- *
+ *
* The method reduces the complexity of the method
* {@link #addChildToParent(Builder, DataSchemaNodeBuilder, String)
* addChildToParent}. *
- *
+ *
* @param parent
* builder of node which is parent for <code>child</code>
* @param child
}
/**
- *
+ *
* Implementation of <code>ModuleImport</code> interface only for the method
* {@link ModuleBuilder#createModuleImport(String, Date, String)
* createModuleImport}.
- *
+ *
*/
private class ModuleImportImpl implements ModuleImport {
final String moduleName;