Enum SpringPageableScanUtils.AutoPaginationMode
- java.lang.Object
-
- java.lang.Enum<SpringPageableScanUtils.AutoPaginationMode>
-
- org.openapitools.codegen.languages.SpringPageableScanUtils.AutoPaginationMode
-
- All Implemented Interfaces:
Serializable,Comparable<SpringPageableScanUtils.AutoPaginationMode>
- Enclosing class:
- SpringPageableScanUtils
public static enum SpringPageableScanUtils.AutoPaginationMode extends Enum<SpringPageableScanUtils.AutoPaginationMode>
The auto-detection mode forautoXSpringPaginated, controlling which query parameters must be present on an operation for it to be treated as Pageable.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONEAuto-detection disabled; only explicitx-spring-paginated: trueis honoured.PAGE_SIZERequires onlypageandsize;sortmay be absent.PAGE_SIZE_SORTRequirespage,size, andsortquery parameters (legacytruebehavior).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCanonicalValue()The canonical option string for this mode (e.g.List<String>getRequiredParams()Query parameter names that must all be present for this mode to detect a Pageable operation.static SpringPageableScanUtils.AutoPaginationModevalueOf(String name)Returns the enum constant of this type with the specified name.static SpringPageableScanUtils.AutoPaginationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SpringPageableScanUtils.AutoPaginationMode NONE
Auto-detection disabled; only explicitx-spring-paginated: trueis honoured.
-
PAGE_SIZE_SORT
public static final SpringPageableScanUtils.AutoPaginationMode PAGE_SIZE_SORT
Requirespage,size, andsortquery parameters (legacytruebehavior).
-
PAGE_SIZE
public static final SpringPageableScanUtils.AutoPaginationMode PAGE_SIZE
Requires onlypageandsize;sortmay be absent.
-
-
Method Detail
-
values
public static SpringPageableScanUtils.AutoPaginationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpringPageableScanUtils.AutoPaginationMode c : SpringPageableScanUtils.AutoPaginationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpringPageableScanUtils.AutoPaginationMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getRequiredParams
public List<String> getRequiredParams()
Query parameter names that must all be present for this mode to detect a Pageable operation.
-
getCanonicalValue
public String getCanonicalValue()
The canonical option string for this mode (e.g."page-size").
-
-