Difference between revisions of "Artefact:Template/org/ooem/templates/wiml-1.0-ooem-multipart-1.0"

From OOModels
Jump to navigationJump to search
Line 27: Line 27:
   <TemplateArgument Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" GenericLevel="IMPLEMENTATION_LANGUAGE_TEMPLATE"/><!-- <span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/DefaultValue"</span>▸</span> -->
   <TemplateArgument Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" GenericLevel="IMPLEMENTATION_LANGUAGE_TEMPLATE"/><!-- <span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/DefaultValue"</span>▸</span> -->
  <span class="oogindentation">  ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">  ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">  ⋮</span><span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Attributes"</span>){»</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">  ⋮</span><span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Bases"</span>){»</span><span class="oogcontinuation">…</span>
   <Attribute Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" Type="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Type"</span>▸</span>" Stereotype="<span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span>"/>
   <Base Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>"/>
  <span class="oogindentation">  ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">  ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span>
   <Stereotype><span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span></Stereotype>
   <Stereotype><span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span></Stereotype>
Line 34: Line 34:
   <Attribute Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" Type="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Type"</span>▸</span>" Stereotype="<span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span>"<span class="oogcontinuation">…</span>
   <Attribute Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" Type="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Type"</span>▸</span>" Stereotype="<span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span>"<span class="oogcontinuation">…</span>
  <span class="oogindentation">    ⋮</span><span class="oogcode">«¬∅(<span class="oogpath">‖"Ⓟ/Extensions"</span>){»</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">    ⋮</span><span class="oogcode">«¬∅(<span class="oogpath">‖"Ⓟ/Extensions"</span>){»</span><span class="oogcontinuation">…</span>
<span class="oogindentation">      ⋮</span>>
  <span class="oogindentation">      ⋮</span><span class="oogtemplatecode">⊏ ➜ this.Extensions(object) ⊐</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">      ⋮</span><span class="oogtemplatecode">⊏ ➜ this.Extensions(object) ⊐</span><span class="oogcontinuation">…</span>
   </Attribute>
   </Attribute>
Line 43: Line 44:
   <Operation Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" ReturnType="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/ReturnType"</span>▸</span>" Stereotype="<span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span>"<span class="oogcontinuation">…</span>
   <Operation Name="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span>" ReturnType="<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/ReturnType"</span>▸</span>" Stereotype="<span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span>"<span class="oogcontinuation">…</span>
  <span class="oogindentation">    ⋮</span><span class="oogcode">«¬∅(<span class="oogpath">‖"Ⓟ/Extensions"</span>){»</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">    ⋮</span><span class="oogcode">«¬∅(<span class="oogpath">‖"Ⓟ/Extensions"</span>){»</span><span class="oogcontinuation">…</span>
<span class="oogindentation">      ⋮</span>>
  <span class="oogindentation">      ⋮</span><span class="oogtemplatecode">⊏ ➜ this.Extensions(object) ⊐</span><span class="oogcontinuation">…</span>
  <span class="oogindentation">      ⋮</span><span class="oogtemplatecode">⊏ ➜ this.Extensions(object) ⊐</span><span class="oogcontinuation">…</span>
   </Attribute>
   </Attribute>

Revision as of 11:40, 10 November 2008

Classification
Type Type:org/oogenerator/Template/2.0
Domain Domain:it/development/formatting
Category Type:org/oomodels/wiki/Template
Maturity final
More
Download Code
Namespace (more)

OOEM main package

create new pages

Code[edit]

G-2.0-java_jpp-1.0 -*- coding: utf-8; -*-

import org.oomodels.wiml.*;

⊏ signature(String wiml_code) ⊐
« try { WIMLClass wc = WIMLClass.parseWIML(wiml_code); object = wc; »
<Class>
  <Name>‖"Ⓟ/Name"</Name>
«∀(‖"Ⓟ/ModelTemplateArguments"){»
  <TemplateArgument Name="‖"Ⓟ/Name"" GenericLevel="MODEL_TEMPLATE"/>
«}/∀»
«∀(‖"Ⓟ/CodeGeneratorTemplateArguments"){»
  <TemplateArgument Name="‖"Ⓟ/Name"" GenericLevel="CODE_GENERATOR_TEMPLATE"/>
«}/∀»
«∀(‖"Ⓟ/ImplementationLanguageTemplateArguments"){»
  <TemplateArgument Name="‖"Ⓟ/Name"" GenericLevel="IMPLEMENTATION_LANGUAGE_TEMPLATE"/>
«}/∀»
«∀(‖"Ⓟ/Bases"){»
  <Base Name="‖"Ⓟ/Name""/>
«}/∀»
  <Stereotype>«∀(‖"Ⓟ/Stereotypes"){»◂⊙▸«}/∀»</Stereotype>
«∀(‖"Ⓟ/Attributes"){»
  <Attribute Name="‖"Ⓟ/Name"" Type="‖"Ⓟ/Type"" Stereotype="«∀(‖"Ⓟ/Stereotypes"){»◂⊙▸«}/∀»"
«¬∅(‖"Ⓟ/Extensions"){»
>
⊏ ➜ this.Extensions(object) ⊐
  </Attribute>
«}∨{»
/>
«}/¬∅»
«}/∀»
«∀(‖"Ⓟ/Operations"){»
  <Operation Name="‖"Ⓟ/Name"" ReturnType="‖"Ⓟ/ReturnType"" Stereotype="«∀(‖"Ⓟ/Stereotypes"){»◂⊙▸«}/∀»"
«¬∅(‖"Ⓟ/Extensions"){»
>
⊏ ➜ this.Extensions(object) ⊐
  </Attribute>
«}∨{»
/>
«}/¬∅»
«}/∀»
«¬∅(‖"Ⓟ/Extensions"){»
⊏ ➜ this.Extensions(object) ⊐
«}/¬∅»
</Class>
« } catch (Throwable t) { »
ERROR: ◂t▸
« } »
⊏ Ⓣ Extensions(Object object) ⊐
    <Extensions>
«∀(⊙){»
      <‖"Ⓟ/Name">
«∀(‖"Ⓟ/Properties"){»
        <‖"Ⓟ/Name">‖"Ⓟ/Value"</‖"Ⓟ/Name">
«}/∀»
      </‖"Ⓟ/Name">
«}/∀»
    </Extensions>
⊏ /Ⓣ ⊐