Interface CtxExtraDateSerializer
@JStache(path="extraDateSerializers")
@Immutable
public interface CtxExtraDateSerializer
Context passed to Mustache when compiling an extra template.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the optional application description.appName()
Returns the application name.static dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxExtraDateSerializer.Builder
builder()
Returns a builder for this type.Returns the optional date format used by the LocalDate serializer.Returns the optional date time format used by the LocalDateTime serializer.Returns the optional date time format used by the OffsetDateTime serializer.Returns the class name of the serializer.boolean
Returns true if this should render as a deserializer.Returns the name of the Generated annotation class.Returns the optional date of the generation.Returns the name of the generator class.Returns the imports needed in the template.default boolean
Returns true if there are imports to render, otherwise false.Returns the optional application contact email.boolean
Returns true if jackson fasterxml serializer is used, otherwise false.boolean
jsonb()
Returns true if jsonb serializer is used, otherwise false.Returns the package name for the class.boolean
Returns true if this should render LocalDate type handling.boolean
Returns true if this should render LocalDateTime type handling.boolean
Returns true if this should render OffsetDateTime type handling.version()
Returns the application version.
-
Method Details
-
builder
static dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxExtraDateSerializer.Builder builder()Returns a builder for this type.- Returns:
- a builder for this type
-
className
String className()Returns the class name of the serializer.- Returns:
- the class name of the serializer
-
appName
String appName()Returns the application name.- Returns:
- the application name
-
version
String version()Returns the application version.- Returns:
- the application version
-
appDescription
Returns the optional application description.- Returns:
- the optional application description
-
infoEmail
Returns the optional application contact email.- Returns:
- the optional application contact email
-
getImports
Returns the imports needed in the template.- Returns:
- the imports needed in the template
-
hasImports
default boolean hasImports()Returns true if there are imports to render, otherwise false.- Returns:
- true if there are imports to render, otherwise false
-
packageName
String packageName()Returns the package name for the class.- Returns:
- the package name for the class
-
jacksonFasterxml
boolean jacksonFasterxml()Returns true if jackson fasterxml serializer is used, otherwise false.- Returns:
- true if jackson fasterxml serializer is used, otherwise false
-
jsonb
boolean jsonb()Returns true if jsonb serializer is used, otherwise false.- Returns:
- true if jsonb serializer is used, otherwise false
-
deserializer
boolean deserializer()Returns true if this should render as a deserializer.- Returns:
- true if this should render as a deserializer
-
renderLocalDate
boolean renderLocalDate()Returns true if this should render LocalDate type handling.- Returns:
- true if this should render LocalDate type handling
-
renderLocalDateTime
boolean renderLocalDateTime()Returns true if this should render LocalDateTime type handling.- Returns:
- true if this should render LocalDateTime type handling
-
renderOffsetDateTime
boolean renderOffsetDateTime()Returns true if this should render OffsetDateTime type handling.- Returns:
- true if this should render OffsetDateTime type handling
-
generatedAnnotationClass
String generatedAnnotationClass()Returns the name of the Generated annotation class.- Returns:
- the name of the Generated annotation class
-
generatorClass
String generatorClass()Returns the name of the generator class.- Returns:
- the name of the generator class
-
generatedDate
Returns the optional date of the generation.- Returns:
- the optional date of the generation
-
cannedLocalDateSerializerDTF
Returns the optional date format used by the LocalDate serializer.- Returns:
- the optional date format used by the LocalDate serializer
-
cannedLocalDateTimeSerializerDTF
Returns the optional date time format used by the LocalDateTime serializer.- Returns:
- the optional date time format used by the LocalDateTime serializer
-
cannedOffsetDateTimeSerializerDTF
Returns the optional date time format used by the OffsetDateTime serializer.- Returns:
- the optional date time format used by the OffsetDateTime serializer
-