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.netconf.sal.rest.doc.impl;
10 import java.util.Optional;
11 import org.opendaylight.mdsal.dom.api.DOMMountPointService;
12 import org.opendaylight.mdsal.dom.api.DOMSchemaService;
13 import org.opendaylight.netconf.sal.rest.doc.mountpoints.MountPointSwagger;
16 * MountPoint generator implementation for bierman draft02.
18 * @author Thomas Pantelis
20 public class MountPointSwaggerGeneratorDraft02 extends BaseYangSwaggerGeneratorDraft02 implements AutoCloseable {
22 private final MountPointSwagger mountPointSwagger;
24 public MountPointSwaggerGeneratorDraft02(final DOMSchemaService schemaService,
25 final DOMMountPointService mountService) {
26 super(Optional.of(schemaService));
27 mountPointSwagger = new MountPointSwagger(schemaService, mountService, this);
28 mountPointSwagger.init();
31 public MountPointSwaggerGeneratorDraft02(final DOMSchemaService schemaService,
32 final DOMMountPointService mountService, final String basePath) {
33 super(Optional.of(schemaService), basePath);
34 mountPointSwagger = new MountPointSwagger(schemaService, mountService, this);
35 mountPointSwagger.init();
38 public MountPointSwagger getMountPointSwagger() {
39 return mountPointSwagger;
44 mountPointSwagger.close();