Enum Class ExtraTemplate

java.lang.Object
java.lang.Enum<ExtraTemplate>
dk.mada.jaxrs.generator.mpclient.ExtraTemplate
All Implemented Interfaces:
Serializable, Comparable<ExtraTemplate>, Constable

public enum ExtraTemplate extends Enum<ExtraTemplate>
Extra templates. These represents extra templates that need to be optionally rendered, based on model and options.
  • Enum Constant Details

    • LOCAL_DATE_JACKSON_DESERIALIZER

      public static final ExtraTemplate LOCAL_DATE_JACKSON_DESERIALIZER
      LocalDate Jackson deserializer template.
    • LOCAL_DATE_JACKSON_SERIALIZER

      public static final ExtraTemplate LOCAL_DATE_JACKSON_SERIALIZER
      LocalDate Jackson serializer template.
    • LOCAL_DATE_TIME_JACKSON_DESERIALIZER

      public static final ExtraTemplate LOCAL_DATE_TIME_JACKSON_DESERIALIZER
      LocalDateTime Jackson deserializer template.
    • LOCAL_DATE_TIME_JACKSON_SERIALIZER

      public static final ExtraTemplate LOCAL_DATE_TIME_JACKSON_SERIALIZER
      LocalDateTime Jackson serializer template.
    • OFFSET_DATE_TIME_JACKSON_DESERIALIZER

      public static final ExtraTemplate OFFSET_DATE_TIME_JACKSON_DESERIALIZER
      OffsetDateTime Jackson deserializer template.
    • OFFSET_DATE_TIME_JACKSON_SERIALIZER

      public static final ExtraTemplate OFFSET_DATE_TIME_JACKSON_SERIALIZER
      OffsetDateTime Jackson serializer template.
  • Method Details

    • values

      public static ExtraTemplate[] 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

      public static ExtraTemplate valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • classname

      public String 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

      public Set<TypedImport> requiredImports()
      Returns the required imports for this template.
      Returns:
      the required imports for this template