public abstract class AbstractJSONDocScanner extends Object implements JSONDocScanner
| Modifier and Type | Field and Description |
|---|---|
protected List<ApiMethodDoc> |
allApiMethodDocs |
protected Set<Class<?>> |
jsondocControllers |
protected Set<Class<?>> |
jsondocFlows |
protected Set<Method> |
jsondocMethods |
protected Set<Class<?>> |
jsondocObjects |
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) |
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) |
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 |
initApiDoc(Class<?> controller) |
abstract ApiMethodDoc |
initApiMethodDoc(Method method) |
abstract ApiObjectDoc |
initApiObjectDoc(Class<?> clazz) |
abstract Set<Class<?>> |
jsondocControllers() |
abstract Set<Class<?>> |
jsondocFlows() |
abstract Set<Method> |
jsondocMethods(Class<?> controller) |
abstract Set<Class<?>> |
jsondocObjects() |
abstract ApiDoc |
mergeApiDoc(Class<?> controller,
ApiDoc apiDoc) |
abstract ApiMethodDoc |
mergeApiMethodDoc(Method method,
ApiMethodDoc apiMethodDoc) |
abstract ApiObjectDoc |
mergeApiObjectDoc(Class<?> clazz,
ApiObjectDoc apiObjectDoc) |
protected org.reflections.Reflections reflections
protected static org.slf4j.Logger log
protected List<ApiMethodDoc> allApiMethodDocs
public abstract ApiMethodDoc initApiMethodDoc(Method method)
public abstract ApiMethodDoc mergeApiMethodDoc(Method method, ApiMethodDoc apiMethodDoc)
public abstract ApiObjectDoc initApiObjectDoc(Class<?> clazz)
public abstract ApiObjectDoc mergeApiObjectDoc(Class<?> clazz, ApiObjectDoc apiObjectDoc)
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<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)
Copyright © 2015. All rights reserved.