Class Documenter.CanvasOptions.Grouping
java.lang.Object
org.springframework.modulith.docs.Documenter.CanvasOptions.Grouping
- Enclosing class:
- Documenter.CanvasOptions
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description of theDocumenter.CanvasOptions.Grouping
.getName()
Returns the name of theDocumenter.CanvasOptions.Grouping
.static Predicate<SpringBean>
implementing
(Class<?> type) Helper method to create aPredicate
forSpringBean
s implementing the given interface.static Predicate<SpringBean>
isAnnotatedWith
(Class<? extends Annotation> type) boolean
matches
(SpringBean candidate) Returns whether the givenSpringBean
matches theDocumenter.CanvasOptions.Grouping
.static Predicate<SpringBean>
nameMatching
(String pattern) Helper method to create aPredicate
forSpringBean
s matching the given name pattern.Deprecated.of
(String name, Predicate<SpringBean> predicate) Creates aDocumenter.CanvasOptions.Grouping
with the given name and selectingPredicate
.of
(String name, Predicate<SpringBean> predicate, String description) Creates aDocumenter.CanvasOptions.Grouping
with the given name, selectingPredicate
and description.static Predicate<SpringBean>
Helper method to create aPredicate
forSpringBean
s that are a subtype of the given one.
-
Method Details
-
of
Deprecated.no replacement as a name-onlyDocumenter.CanvasOptions.Grouping
doesn't make any sense in the first place.Creates aDocumenter.CanvasOptions.Grouping
with the given name.- Parameters:
name
- must not be null or empty.- Returns:
- will never be null.
-
of
Creates aDocumenter.CanvasOptions.Grouping
with the given name and selectingPredicate
.- Parameters:
name
- must not be null or empty.predicate
- must not be null.- Returns:
- will never be null.
-
of
public static Documenter.CanvasOptions.Grouping of(String name, Predicate<SpringBean> predicate, String description) Creates aDocumenter.CanvasOptions.Grouping
with the given name, selectingPredicate
and description.- Parameters:
name
- must not be null or empty.predicate
- must not be null.description
- must not be null or empty.- Returns:
- will never be null.
-
nameMatching
Helper method to create aPredicate
forSpringBean
s matching the given name pattern.- Parameters:
pattern
- must not be null or empty.- Returns:
- will never be null.
-
implementing
Helper method to create aPredicate
forSpringBean
s implementing the given interface.- Parameters:
type
- must not be null.- Returns:
- will never be null.
-
subtypeOf
Helper method to create aPredicate
forSpringBean
s that are a subtype of the given one. In other words, implement or extend it but are not the type itself.- Parameters:
type
- must not be null.- Returns:
- will never be null.
-
isAnnotatedWith
-
getName
Returns the name of theDocumenter.CanvasOptions.Grouping
.- Returns:
- will never be null or empty.
-
getDescription
Returns the description of theDocumenter.CanvasOptions.Grouping
.- Returns:
- can be null.
-
matches
Returns whether the givenSpringBean
matches theDocumenter.CanvasOptions.Grouping
.- Parameters:
candidate
- must not be null.
-
Documenter.CanvasOptions.Grouping
doesn't make any sense in the first place.