public abstract class AbstractJacksonFieldSnippet extends StandardTableSnippet implements SectionSupport
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJacksonFieldSnippet(String snippetName,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected FieldDescriptors |
createFieldDescriptors(org.springframework.restdocs.operation.Operation operation,
org.springframework.web.method.HandlerMethod handlerMethod) |
protected Type |
firstGenericType(org.springframework.core.MethodParameter param) |
String |
getFileName()
File name (= section name).
|
protected abstract Type |
getType(org.springframework.web.method.HandlerMethod method) |
boolean |
hasContent(org.springframework.restdocs.operation.Operation operation)
Flag if section will render non-empty content.
|
protected boolean |
isCollection(Class<?> type) |
protected abstract boolean |
shouldFailOnUndocumentedFields() |
createModel, createModelForDescriptor, enrichModel, getTranslationKeysdocument, getAttributes, getSnippetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeaderKeyprotected FieldDescriptors createFieldDescriptors(org.springframework.restdocs.operation.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod)
createFieldDescriptors in class StandardTableSnippetprotected Type firstGenericType(org.springframework.core.MethodParameter param)
protected abstract Type getType(org.springframework.web.method.HandlerMethod method)
protected abstract boolean shouldFailOnUndocumentedFields()
protected boolean isCollection(Class<?> type)
public String getFileName()
SectionSupportgetFileName in interface SectionSupportpublic boolean hasContent(org.springframework.restdocs.operation.Operation operation)
SectionSupporthasContent in interface SectionSupportoperation - operationCopyright © 2018 Scalable Capital GmbH. All rights reserved.