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

pojo.PojoPropertyAccessors.ftl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
<#-- // Property accessors -->
<#list pojo.getAllPropertiesIterator() as property>
<#if pojo.getMetaAttribAsBool(property, "gen-property", true)>
 <#if pojo.hasFieldJavaDoc(property)>    
    /**       
     * ${pojo.getFieldJavaDoc(property, 4)}
     */

    <#include "GetPropertyAnnotation.ftl"/>
    ${pojo.getPropertyGetModifiers(property)} ${pojo.getJavaTypeName(property, jdk5)} ${pojo.getGetterSignature(property)}() {
        return this.${c2j.keyWordCheck(property.name)};
    }
    
    ${pojo.getPropertySetModifiers(property)} void set${pojo.getPropertyName(property)}(${pojo.getJavaTypeName(property, jdk5)} ${c2j.keyWordCheck(property.name)}) {
        this.${c2j.keyWordCheck(property.name)} = ${c2j.keyWordCheck(property.name)};
    }






© 2015 - 2024 Weber Informatics LLC | Privacy Policy