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

tokenComponent.mustache

Blame
  • tokenComponent.mustache 652 B
    public {{parentTypeName}} {{parentTypeName}}.set{{Name}}({{javaType}} value) {
      set{{internalName}}(value);
      {{#dependencySourceDefinitionsOwnedByMe}}
      for ({{targetParentTypeName}} target : get{{internalRelationPrefix}}TargetList()) {
        {{#targetPortDefinition}}
        if (target.{{updateMethodName}}()) {
          target.{{writeMethodName}}();
        }
        {{/targetPortDefinition}}
      }
      {{/dependencySourceDefinitionsOwnedByMe}}
      {{#normalTokenSendDef}}
      if ({{updateMethodName}}()) {
        {{writeMethodName}}();
      }
      {{/normalTokenSendDef}}
      return this;
    }
    
    public {{javaType}} {{parentTypeName}}.get{{Name}}() {
      return get{{internalName}}();
    }