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

META-INF.templates.java.write-boolean-attribute.ftl Maven / Gradle / Ivy

The newest version!
<#if value.literal >
  <#if value == '"true"' || value == '"${attributeName}"' >
  ${responseWriterVariable}.writeAttribute("${attributeName}","${attributeName}",null);
  
<#else>
      <#if value.type == "boolean" >
      if(${value}) {
      <#elseif value.type == "Boolean" >
      if(Boolean.TRUE.equals(${value})) {
      <#elseif value.type == "String" >
      if("${attributeName}".equals(${value}) || Boolean.valueOf(${value}) ) {
      <#else>
      if(null != ${value} && ( Boolean.valueOf(${value}.toString()) || "${attributeName}".equals(${value}.toString())) ) {
      
        ${responseWriterVariable}.writeAttribute("${attributeName}","${attributeName}",null);
      }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy