Skip to content
Snippets Groups Projects
Select Git revision
  • 75f973c257dc9b68b6248b1cf130642bed1c31bd
  • dev default protected
  • main protected
  • feature/ros-java-integration
4 results

tokenComponent.mustache

Blame
  • rschoene's avatar
    René Schöne authored
    - allow normal tokens to be sent
    75f973c2
    History
    tokenComponent.mustache 614 B
    public {{parentTypeName}} {{parentTypeName}}.set{{name}}({{javaType}} value) {
      set{{internalName}}(value);
      {{#DependencyDefinitions}}
      for ({{targetParentTypeName}} target : get{{internalRelationPrefix}}TargetList()) {
        {{#targetEndpointDefinition}}
        if (target.{{updateMethod}}()) {
          target.{{writeMethod}}();
        }
        {{/targetEndpointDefinition}}
      }
      {{/DependencyDefinitions}}
      {{#normalTokenSendDef}}
      if ({{updateMethod}}()) {
        {{writeMethod}}();
      }
      {{/normalTokenSendDef}}
      return this;
    }
    
    public {{javaType}} {{parentTypeName}}.get{{name}}() {
      return get{{internalName}}();
    }