Interface CtxDto
@JStache(path="model")
@Immutable
public interface CtxDto
Context passed to Mustache when compiling a model.
-
Method Summary
Modifier and TypeMethodDescription@Nullable CtxEnum
Returns the enumeration constants/values, or null.Returns the optional application description.appName()
Returns the application name.static dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxDto.Builder
builder()
Returns a builder for this type.Returns the classname for the class.Returns the class name used in equals method.@Nullable String
dataType()
Returns the data type of an enumeration, or null.@Nullable String
Returns unknown, kept from upstream template.Returns the optional description of the class.Returns an optional discriminator for sub-class selection.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.default boolean
hasVars()
Returns true if there are properties to render, otherwise false.Returns the optional application contact email.default boolean
isEnum()
Returns true if this is an enumeration, otherwise false.boolean
Returns true if the is an enumeration that can be deserialized as null.boolean
jackson()
Returns true if a jackson serializer is used, otherwise false.madaDto()
Returns additional custom template data for the dto.Returns the package name for the class.parent()
Returns the optional name of a parent class.vars()
Returns the properties of the class.Returns optional vendor extensions.version()
Returns the application version.
-
Method Details
-
builder
static dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxDto.Builder builder()Returns a builder for this type.- Returns:
- a builder for this type
-
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
-
description
Returns the optional description of the class.- Returns:
- the optional description of the class
-
packageName
String packageName()Returns the package name for the class.- Returns:
- the package name for the class
-
classname
String classname()Returns the classname for the class.- Returns:
- the classname for the class
-
classVarName
String classVarName()Returns the class name used in equals method.- Returns:
- the class name used in equals method
-
vars
List<CtxProperty> vars()Returns the properties of the class.- Returns:
- the properties of the class
-
hasVars
default boolean hasVars()Returns true if there are properties to render, otherwise false.- Returns:
- true if there are properties to render, otherwise false
-
isEnum
default boolean isEnum()Returns true if this is an enumeration, otherwise false.- Returns:
- true if this is an enumeration, otherwise false
-
allowableValues
@Nullable CtxEnum allowableValues()Returns the enumeration constants/values, or null.- Returns:
- the enumeration constants/values, or null
-
dataType
@Nullable String dataType()Returns the data type of an enumeration, or null.- Returns:
- the data type of an enumeration, or null
-
datatypeWithEnum
@Nullable String datatypeWithEnum()Returns unknown, kept from upstream template.- Returns:
- unknown, kept from upstream template
-
isNullable
boolean isNullable()Returns true if the is an enumeration that can be deserialized as null.- Returns:
- true if the is an enumeration that can be deserialized as null
-
parent
Returns the optional name of a parent class.- Returns:
- the optional name of a parent class
-
vendorExtensions
Returns optional vendor extensions.- Returns:
- optional vendor extensions
-
jackson
boolean jackson()Returns true if a jackson serializer is used, otherwise false.- Returns:
- true if a jackson serializer is used, otherwise false
-
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
-
discriminator
Optional<CtxDtoDiscriminator> discriminator()Returns an optional discriminator for sub-class selection.- Returns:
- an optional discriminator for sub-class selection
-
madaDto
CtxDtoExt madaDto()Returns additional custom template data for the dto.- Returns:
- additional custom template data for the dto
-