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, "");
}
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;
}
}