March 2004
Beginner to intermediate
176 pages
3h 48m
English
Mapping functions are the consumers and producers, the sources and the sinks, for marks, but what can a mapping function do with all of these marks?
The AccessorType mark we described above demonstrates how mapping rules are selected depending on the mark's value. If the value of the mark is isRemote, the mapping uses the rules that produce a component enabled for remote access. Otherwise, the rules for local access are used. Rule selection is one way in which a mapping function uses marks.
In cases where the mapping function has to fill in a blank in the target model, the mark acts as a value provider. As another example, we may decide to postfix certain class names with “_C.” This string is a value that would ...
Read now
Unlock full access