All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.kotlin.nested_class_normal.mustache Maven / Gradle / Ivy

There is a newer version: 0.113
Show newest version
{{#isObject}}    {{#numberOfProperties}}{{>data_open_class}} {{&className}}({{!
}}{{#properties}}{{^first}},{{/first}}
{{#schema}}{{#description}}        /** {{&safeDescription}} */
{{/description}}{{/schema}}{{!
}}{{#indent.increment}}{{#fieldAnnotated}}{{>annotations}}{{/fieldAnnotated}}{{/indent.increment}}{{!
}}        {{^baseProperty}}{{^extendedInDerived}}val {{/extendedInDerived}}{{/baseProperty}}{{!
}}{{#baseProperty}}{{#extendedInDerived}}override val {{/extendedInDerived}}{{/baseProperty}}{{!
}}{{&kotlinName}}: {{>type}}{{#defaultValue}} = {{>default_value}}{{/defaultValue}}{{!
}}{{^isRequired}}{{^defaultValue}} = null{{/defaultValue}}{{/isRequired}}{{/properties}}
    ){{>extends_implements}}{{#validationsOrBaseClassWithPropertiesPresent}} {

{{#validationsPresent}}        init {
{{#properties}}{{>validations}}{{/properties}}        }

{{/validationsPresent}}{{#hasBaseClassWithProperties}}
{{#properties}}{{#extendedInDerived}}        open val {{&kotlinName}}: {{>type}} = {{&kotlinName}}
{{/extendedInDerived}}{{/properties}}
{{>equals}}
{{>hashcode}}
{{>tostring}}
{{>copy}}
{{>component}}

{{/hasBaseClassWithProperties}}    }{{/validationsOrBaseClassWithPropertiesPresent}}{{/numberOfProperties}}{{!
}}{{^numberOfProperties}}open class {{&className}}{{/numberOfProperties}}{{/isObject}}{{!
}}{{#isString}}{{>enum_body}}{{/isString}}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy