Enum Class JsonApiConfiguration.AffordanceType
java.lang.Object
java.lang.Enum<JsonApiConfiguration.AffordanceType>
com.toedter.spring.hateoas.jsonapi.JsonApiConfiguration.AffordanceType
- All Implemented Interfaces:
Serializable
,Comparable<JsonApiConfiguration.AffordanceType>
,Constable
- Enclosing class:
- JsonApiConfiguration
public static enum JsonApiConfiguration.AffordanceType
extends Enum<JsonApiConfiguration.AffordanceType>
The list of possible affordance types.
Those affordance types are used by
JsonApiConfiguration.withAffordancesRenderedAsLinkMeta(com.toedter.spring.hateoas.jsonapi.JsonApiConfiguration.AffordanceType)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAffordances will be rendered as link meta (HAL-FORMS format).Default, affordances will NOT be rendered as link meta.Affordances will be rendered as link meta (proprietary format). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static JsonApiConfiguration.AffordanceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Default, affordances will NOT be rendered as link meta. -
SPRING_HATEOAS
Affordances will be rendered as link meta (proprietary format). The format is close to the internal Spring HATEOAS internal model. -
HAL_FORMS
Affordances will be rendered as link meta (HAL-FORMS format). See https://rwcbook.github.io/hal-forms/#templates-element.
-
-
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
-