Open GoogleCodeExporter opened 9 years ago
Original comment by klaus.birken@gmail.com
on 12 Feb 2015 at 7:13
Original comment by klaus.birken@gmail.com
on 10 Mar 2015 at 2:06
Original comment by klaus.birken@gmail.com
on 10 Mar 2015 at 2:06
Implemented on develop, final commit is 1c87ac8.
It is possible now to overwrite the deployment of the complex types array,
enumeration, struct and union. There are special keywords now for overwriting
properties, look for "#", "#enumeration", #struct", and "#union" (everything
related to overwrite begins with a hash mark). See examples in the deploy.test
project:
https://code.google.com/a/eclipselabs.org/p/franca/source/browse/tests/org.franc
a.deploymodel.dsl.tests/model/testcases/70-DefTypesOverwrite.fdepl?name=develop
and
https://code.google.com/a/eclipselabs.org/p/franca/source/browse/tests/org.franc
a.deploymodel.dsl.tests/model/testcases/65-DefCompoundOverwrite.fdepl?name=devel
op
Overwriting can be done in deployment definitions for all Franca model elements
which are typed (FField, FAttribute, FArgument) and for the element type of
explicit arrays (FArrayType).
The generation of Java classes for easy access to properties has underwent a
major rewrite. However, the previous API is still available, but will be marked
as deprecated. Change your client code in order to remove the deprecation
warnings. The latest generated API will be in collected in a generated class
named exactly as the deployment specification and located in the same (Java)
package as the deployment specification. Look for the getOverwriteAccessor()
methods to access overwritten property values. Check the test classes
InterfaceDeployAccessorTest, TypeCollectionAccessorTest and
DeployAccessorTypesTest in the plug-in org.franca.deploymodel.dsl.tests to get
some hints about how to use the new generated API.
Documentation is yet to come :-).
Original comment by klaus.birken@gmail.com
on 8 May 2015 at 6:56
Original issue reported on code.google.com by
manfred....@bmw.de
on 28 Jan 2015 at 5:28Attachments: