Class IgnorableDescriptor<T extends IgnorableDescriptor<T>>
java.lang.Object
org.springframework.restdocs.snippet.AbstractDescriptor<T>
org.springframework.restdocs.snippet.IgnorableDescriptor<T>
- Type Parameters:
T
- the type of the descriptor
- Direct Known Subclasses:
FieldDescriptor
,LinkDescriptor
,ParameterDescriptor
,RequestPartDescriptor
public abstract class IgnorableDescriptor<T extends IgnorableDescriptor<T>>
extends AbstractDescriptor<T>
Base class for descriptors for items that can be ignored.
- Author:
- Andy Wilkinson
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.restdocs.snippet.AbstractDescriptor
attributes, description, getAttributes, getDescription
-
Constructor Details
-
IgnorableDescriptor
public IgnorableDescriptor()
-
-
Method Details
-
ignored
Marks the described item as being ignored. Ignored items are not included in the generated documentation.- Returns:
- the descriptor
-
isIgnored
public final boolean isIgnored()Returns whether or not the item being described should be ignored and, therefore, should not be included in the documentation.- Returns:
true
if the item should be ignored, otherwisefalse
.
-