Merge changes I0d93e3c4,I34aca892,I74162d9a,Icd48e366
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / impl / ApiDocGenerator.java
index 59cbba0719489859e6bcd4a1bf122d7ea34dbad9..1f4b3b52c0e7c66a52d2f1723e5f2e1e2afa316b 100644 (file)
@@ -23,15 +23,15 @@ public class ApiDocGenerator extends BaseYangSwaggerGenerator {
     private static final ApiDocGenerator INSTANCE = new ApiDocGenerator();
     private SchemaService schemaService;
 
-    public ResourceList getResourceListing(UriInfo uriInfo) {
+    public ResourceList getResourceListing(final UriInfo uriInfo) {
         Preconditions.checkState(schemaService != null);
-        SchemaContext schemaContext = schemaService.getGlobalContext();
+        final SchemaContext schemaContext = schemaService.getGlobalContext();
         Preconditions.checkState(schemaContext != null);
         return super.getResourceListing(uriInfo, schemaContext, "");
     }
 
-    public ApiDeclaration getApiDeclaration(String module, String revision, UriInfo uriInfo) {
-        SchemaContext schemaContext = schemaService.getGlobalContext();
+    public ApiDeclaration getApiDeclaration(final String module, final String revision, final UriInfo uriInfo) {
+        final SchemaContext schemaContext = schemaService.getGlobalContext();
         Preconditions.checkState(schemaContext != null);
         return super.getApiDeclaration(module, revision, uriInfo, schemaContext, "");
     }
@@ -43,7 +43,11 @@ public class ApiDocGenerator extends BaseYangSwaggerGenerator {
         return INSTANCE;
     }
 
-    public void setSchemaService(SchemaService schemaService) {
+    public void setDraft(final boolean newDraft) {
+        super.setDraft(newDraft);
+    }
+
+    public void setSchemaService(final SchemaService schemaService) {
         this.schemaService = schemaService;
     }
 }