import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveSchemaContext;
+import org.opendaylight.yangtools.yang.parser.stmt.reactor.EffectiveSchemaContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * Implementation of {@link RestconfOperationsService}
+ * Implementation of {@link RestconfOperationsService}.
*
*/
public class RestconfOperationsServiceImpl implements RestconfOperationsService {
private final DOMMountPointServiceHandler domMountPointServiceHandler;
/**
- * Set {@link SchemaContextHandler} for getting actual {@link SchemaContext}
+ * Set {@link SchemaContextHandler} for getting actual {@link SchemaContext}.
*
* @param schemaContextHandler
- * - handling schema context
+ * handling schema context
* @param domMountPointServiceHandler
- * - handling dom mount point service
+ * handling dom mount point service
*/
public RestconfOperationsServiceImpl(final SchemaContextHandler schemaContextHandler,
final DOMMountPointServiceHandler domMountPointServiceHandler) {
ref.get(), Optional.of(this.domMountPointServiceHandler.get()));
mountPoint = mountPointIdentifier.getMountPoint();
modules = ref.getModules(mountPoint);
-
} else {
final String errMsg =
"URI has bad format. If operations behind mount point should be showed, URI has to end with ";
* of schema nodes and module.
*
* @param modules
- * - set of modules for get RPCs from every module
+ * set of modules for get RPCs from every module
* @param mountPoint
- * - mount point, if in use otherwise null
+ * mount point, if in use otherwise null
* @return {@link NormalizedNodeContext}
*/
private static NormalizedNodeContext getOperations(final Set<Module> modules, final DOMMountPoint mountPoint) {
neededModules.forEach(imp -> fakeModules.add(new FakeImportedModule(imp)));
fakeModules.add(new FakeRestconfModule(neededModules, fakeCont));
+ // FIXME: use a separate sublcass of AbstractSchemaContext
final SchemaContext fakeSchemaCtx =
EffectiveSchemaContext.resolveSchemaContext(ImmutableSet.copyOf(fakeModules));
final InstanceIdentifierContext<ContainerSchemaNode> instanceIdentifierContext =