<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Verdana","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">Metamorph Definitionen können nun parametrisiert werden:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:teal"><</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F">data</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">
<span style="color:#7F007F">name</span><span style="color:black">=</span><i><span style="color:#2A00FF">"edm:rights"</span></i>
<span style="color:#7F007F">source</span><span style="color:black">=</span><i><span style="color:#2A00FF">"_id"</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal"><</span><span style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F">constant</span><span style="font-size:10.0pt;font-family:"Courier New"">
<span style="color:#7F007F">value</span><span style="color:black">=</span><i><span style="color:#2A00FF">"$[rights]"</span></i>
<span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal"></</span><span style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F">data</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal">><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:teal"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">$[rights] stellt hier eine Variable dar, die zur Compilezeit der Metamorph Definition eingesetzt wird. Nicht zu verwechseln mit Variablen in geschweiften Klammern ${x} die
zur Laufzeit eingesetzt werden.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">Die Compilezeitvariablen werden dem Metamorphconstruktor als Map übergeben:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">final</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> Map<String, String> vars =
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> HashMap<String, String>();</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">vars.put(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"rights"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"CC0"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">final</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> Metamorph metamorph =
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> Metamorph(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"morphdef.xml"</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">,
vars);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">Es besteht in der Metamorph Definition die Möglichkeit Standartwerte zu vergeben:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:teal"><</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F">vars</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:teal">></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:teal"><</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F">var</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">
<span style="color:#7F007F">name</span><span style="color:black">=</span><i><span style="color:#2A00FF">"rights"</span></i>
<span style="color:#7F007F">value</span><span style="color:black">=</span><i><span style="color:#2A00FF">"CC0”</span></i>
<span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal"></</span><span style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F">vars</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal">></span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">In Metaflow Skripten können die Metaflowvariablen durch einen Stern an Metamorph weitergereicht werden:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">rights = „CC0“;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">…<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">morph("morphdef.xml", *)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
</div>
</body>
</html>