tokenComponent.mustache 577 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
  public {{parentTypeName}} {{parentTypeName}}.set{{name}}({{javaType}} value) {
    set{{internalName}}(value);
    {{#DependencyDefinitions}}
René Schöne's avatar
René Schöne committed
4
    for ({{targetParentTypeName}} target : get{{internalRelationPrefix}}TargetList()) {
5
      {{#targetEndpointDefinition}}
6
      {{!#isPush}}
René Schöne's avatar
René Schöne committed
7
8
9
      if (target.{{updateMethod}}()) {
        target.{{writeMethod}}();
      }
10
      {{!/isPush}}
11
      {{/targetEndpointDefinition}}
René Schöne's avatar
René Schöne committed
12
13
14
15
16
17
18
19
    }
    {{/DependencyDefinitions}}
    return this;
  }

  public {{javaType}} {{parentTypeName}}.get{{name}}() {
    return get{{internalName}}();
  }