Package dk.mada.jaxrs.generator.mpclient
Enum Class ExtraTemplate
- All Implemented Interfaces:
Serializable
,Comparable<ExtraTemplate>
,Constable
Extra templates.
These represents extra templates that need to be optionally rendered, based on model and options.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLocalDate Jackson deserializer template.LocalDate Jackson serializer template.LocalDateTime Jackson deserializer template.LocalDateTime Jackson serializer template.OffsetDateTime Jackson deserializer template.OffsetDateTime Jackson serializer template. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filename for this template.boolean
Returns true for deserializers.boolean
Returns true if the class handles LocalDate.boolean
Returns true if the class handles LocalDateTime.boolean
Returns true if the class handles OffsetDateTime.Returns the required imports for this template.static ExtraTemplate
Returns the enum constant of this class with the specified name.static ExtraTemplate[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL_DATE_JACKSON_DESERIALIZER
LocalDate Jackson deserializer template. -
LOCAL_DATE_JACKSON_SERIALIZER
LocalDate Jackson serializer template. -
LOCAL_DATE_TIME_JACKSON_DESERIALIZER
LocalDateTime Jackson deserializer template. -
LOCAL_DATE_TIME_JACKSON_SERIALIZER
LocalDateTime Jackson serializer template. -
OFFSET_DATE_TIME_JACKSON_DESERIALIZER
OffsetDateTime Jackson deserializer template. -
OFFSET_DATE_TIME_JACKSON_SERIALIZER
OffsetDateTime Jackson serializer template.
-
-
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
-
classname
Returns the filename for this template .- Returns:
- the filename for this template
-
isDeserializer
public boolean isDeserializer()Returns true for deserializers.- Returns:
- true for deserializers
-
isLocalDate
public boolean isLocalDate()Returns true if the class handles LocalDate.- Returns:
- true if the class handles LocalDate
-
isLocalDateTime
public boolean isLocalDateTime()Returns true if the class handles LocalDateTime.- Returns:
- true if the class handles LocalDateTime
-
isOffsetDateTime
public boolean isOffsetDateTime()Returns true if the class handles OffsetDateTime.- Returns:
- true if the class handles OffsetDateTime
-
requiredImports
Returns the required imports for this template.- Returns:
- the required imports for this template
-