5.11.1.1.1.3. example-custom-functions.xml

Listing 5.90 /example-custom-functions.xml
 1<?xml version="1.0" encoding="UTF-8"?>
 2<functions xmlns="https://metafactory.io/xsd/v1/codeinstruction" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://metafactory.io/xsd/v1/codeinstruction https://metafactory.io/xsd/v1/codeinstruction.xsd">
 3  <function name="createSimpleDtoClassName">
 4    <!--Function must be called with 1 argument:
 5      1) name of the model object
 6    -->
 7    <definition>${arg1}SimpleDto</definition>
 8  </function>
 9
10  <function name="createSimpleEntityClassName">
11    <!--Function must be called with 1 argument:
12      1) name of the model object
13    -->
14    <definition>${arg1}SimpleEntity</definition>
15  </function>
16
17  <function name="createSimpleServiceClassName">
18    <!--Function must be called with 1 argument:
19      1) name of the model object
20    -->
21    <definition>${arg1}SimpleService</definition>
22  </function>
23
24  <function name="createSpecialServiceClassName">
25    <!--Function must be called with 1 argument:
26      1) name of the model object
27    -->
28    <definition>${fmsnippet.examples.exampleSnippetToCreateSpecialServiceClassName}</definition>
29  </function>
30
31</functions>