Skip to content
Snippets Groups Projects
Select Git revision
  • e3e8ea6012efda9e4fbf4971bbc5c8f14f66edce
  • master default protected
  • 20-poc-use-tinytemplate-as-template-engine
  • dev/rene
  • feature/submodule
  • feature/relast
6 results

tokenComponent.mustache

Blame
  • rschoene's avatar
    René Schöne authored
    - added fail-fast behaviour to mustache (if a name/method can not be resolved)
    - enabled logging of mustache (using log4j)
    1a16871d
    History
    tokenComponent.mustache 535 B
      public {{parentTypeName}} {{parentTypeName}}.set{{name}}({{javaType}} value) {
        set{{internalName}}(value);
        {{#DependencyDefinitions}}
        for ({{targetParentTypeName}} target : get{{internalRelationPrefix}}TargetList()) {
          {{#targetUpdateDefinition}}
          if (target.{{updateMethod}}()) {
            target.{{writeMethod}}();
          }
          {{/targetUpdateDefinition}}
        }
        {{/DependencyDefinitions}}
        return this;
      }
    
      public {{javaType}} {{parentTypeName}}.get{{name}}() {
        return get{{internalName}}();
      }