In an Acceleo Model to Text transformation I would like to create a file for a UML class coherent with the packages of containing the class (the class namespace in the UML model). The problem I am facing is that I have to do that in line as the [file] command requires it so I am trying something like this
[file ((c.allOwningPackages().name.->sep('/')).concat(c.name.concat('.hpp')),false,'UTF-8')]
but I am getting this error on the concat:
Cannot find operation (concat(String)) for the type (OclAny)
What is the right way of doing this?