public abstract class AbstractJSONDocScanner extends Object implements JSONDocScanner
| Modifier and Type | Field and Description |
|---|---|
protected List<ApiMethodDoc> |
allApiMethodDocs |
protected static org.slf4j.Logger |
log |
protected org.reflections.Reflections |
reflections |
| Constructor and Description |
|---|
AbstractJSONDocScanner() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
enumConstantsToStringArray(Object[] enumConstants) |
protected ApiAuthDoc |
getApiAuthDocForController(Class<?> clazz) |
protected ApiAuthDoc |
getApiAuthDocForMethod(Method method,
Class<?> clazz) |
Set<ApiDoc> |
getApiDocs(Set<Class<?>> classes,
JSONDoc.MethodDisplay displayMethodAs)
Gets the API documentation for the set of classes passed as argument
|
Map<String,Set<ApiDoc>> |
getApiDocsMap(Set<Class<?>> classes,
JSONDoc.MethodDisplay displayMethodAs) |
Set<ApiFlowDoc> |
getApiFlowDocs(Set<Class<?>> classes,
List<ApiMethodDoc> apiMethodDocs)
Gets the API flow documentation for the set of classes passed as argument
|
Map<String,Set<ApiFlowDoc>> |
getApiFlowDocsMap(Set<Class<?>> classes,
List<ApiMethodDoc> apiMethodDocs) |
Set<ApiObjectDoc> |
getApiObjectDocs(Set<Class<?>> classes) |
Map<String,Set<ApiObjectDoc>> |
getApiObjectsMap(Set<Class<?>> classes) |
Set<ApiParamDoc> |
getApiPathParamDocs(Method method) |
Set<ApiParamDoc> |
getApiQueryParamDocs(Method method) |
JSONDoc |
getJSONDoc(String version,
String basePath,
List<String> packages,
boolean playgroundEnabled,
JSONDoc.MethodDisplay displayMethodAs)
Returns the main
ApiDoc, containing ApiMethodDoc and ApiObjectDoc objects |
abstract ApiDoc |
mergeApiDoc(Class<?> controller,
ApiDoc apiDoc) |
abstract ApiMethodDoc |
mergeApiMethodDoc(Method method,
Class<?> controller,
ApiMethodDoc apiMethodDoc) |
abstract ApiParamDoc |
mergeApiPathParamDoc(Method method,
int paramIndex,
ApiParamDoc apiParamDoc) |
abstract ApiParamDoc |
mergeApiQueryParamDoc(Method method,
int paramIndex,
ApiParamDoc apiParamDoc) |
protected org.reflections.Reflections reflections
protected static org.slf4j.Logger log
protected List<ApiMethodDoc> allApiMethodDocs
public abstract ApiMethodDoc mergeApiMethodDoc(Method method, Class<?> controller, ApiMethodDoc apiMethodDoc)
public abstract ApiParamDoc mergeApiPathParamDoc(Method method, int paramIndex, ApiParamDoc apiParamDoc)
public abstract ApiParamDoc mergeApiQueryParamDoc(Method method, int paramIndex, ApiParamDoc apiParamDoc)
public JSONDoc getJSONDoc(String version, String basePath, List<String> packages, boolean playgroundEnabled, JSONDoc.MethodDisplay displayMethodAs)
ApiDoc, containing ApiMethodDoc and ApiObjectDoc objectsgetJSONDoc in interface JSONDocScannerApiDoc objectpublic Set<ApiDoc> getApiDocs(Set<Class<?>> classes, JSONDoc.MethodDisplay displayMethodAs)
getApiDocs in interface JSONDocScannerpublic Set<ApiFlowDoc> getApiFlowDocs(Set<Class<?>> classes, List<ApiMethodDoc> apiMethodDocs)
getApiFlowDocs in interface JSONDocScannerpublic Set<ApiParamDoc> getApiPathParamDocs(Method method)
public Set<ApiParamDoc> getApiQueryParamDocs(Method method)
public Set<ApiObjectDoc> getApiObjectDocs(Set<Class<?>> classes)
getApiObjectDocs in interface JSONDocScannerpublic Map<String,Set<ApiDoc>> getApiDocsMap(Set<Class<?>> classes, JSONDoc.MethodDisplay displayMethodAs)
public Map<String,Set<ApiFlowDoc>> getApiFlowDocsMap(Set<Class<?>> classes, List<ApiMethodDoc> apiMethodDocs)
protected ApiAuthDoc getApiAuthDocForController(Class<?> clazz)
protected ApiAuthDoc getApiAuthDocForMethod(Method method, Class<?> clazz)
Copyright © 2015. All rights reserved.