2 * Copyright (c) 2018 Inocybe Technologies and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.openapi.impl;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.mdsal.dom.api.DOMMountPointService;
12 import org.opendaylight.mdsal.dom.api.DOMSchemaService;
13 import org.opendaylight.restconf.openapi.mountpoints.MountPointOpenApi;
16 * MountPoint generator implementation for RFC 8040.
18 * @author Thomas Pantelis
20 public class MountPointOpenApiGeneratorRFC8040 extends BaseYangOpenApiGeneratorRFC8040 implements AutoCloseable {
21 private final MountPointOpenApi mountPointOpenApi;
23 public MountPointOpenApiGeneratorRFC8040(final @NonNull DOMSchemaService schemaService,
24 final @NonNull DOMMountPointService mountService, final @NonNull String basePath) {
25 super(schemaService, basePath);
26 mountPointOpenApi = new MountPointOpenApi(schemaService, mountService, this);
27 mountPointOpenApi.init();
30 public MountPointOpenApi getMountPointOpenApi() {
31 return mountPointOpenApi;
36 mountPointOpenApi.close();