Package io.spring.initializr.web.mapper
Enum Class InitializrMetadataVersion
- All Implemented Interfaces:
Serializable
,Comparable<InitializrMetadataVersion>
,Constable
Define the supported metadata version.
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.MediaType
static InitializrMetadataVersion
Returns the enum constant of this class with the specified name.static InitializrMetadataVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V2
HAL-compliant metadata. -
V2_1
Add "compatibilityRange" attribute to any dependency to specify which Spring Boot versions are compatible with it. Also provide a separate "dependencies" endpoint to query dependencies metadata. -
V2_2
Add support for SemVer compliant version format.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMediaType
public org.springframework.http.MediaType getMediaType()
-