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

From OOModels
Jump to navigationJump to search
Line 11: Line 11:
<div class="code">
<div class="code">
  <span class="oogintro">G-2.0-plain_java-1.0 -*- coding: utf-8; -*-</span>
  <span class="oogintro">G-2.0-plain_java-1.0 -*- coding: utf-8; -*-</span>
  <span class="oogfilecode">▼<span class="oogcontinuation">…</span></span>
  <span class="oogfilecode">▼<span class="oogcontinuation">…</span>
  <span class="oogfilecode">import org.oomodels.wiml.*;</span>
  import org.oomodels.wiml.*;
  <span class="oogfilecode">▼</span><span class="oogcontinuation">…</span>
  ▼</span><span class="oogcontinuation">…</span>
  <span class="oogtemplatecode">⊏ signature(String wiml_code) ⊐</span><span class="oogcontinuation">…</span>
  <span class="oogtemplatecode">⊏ signature(String wiml_code) ⊐</span><span class="oogcontinuation">…</span>
  <span class="oogcode">« try { WIMLClass wc = WIMLClass.parseWIML(wiml_code); »</span><span class="oogcontinuation">…</span>
<span class="oogtemplatecode">⊏ locatortarget Object = (Object object) ⊐</span><span class="oogcontinuation">…</span>
  <span class="oogcode">« try { WIMLClass wc = WIMLClass.parseWIML(wiml_code); object = wc; »</span><span class="oogcontinuation">…</span>
  <Class>
  <Class>
   <Name><span class="oogexpression">◂wc.getName()▸</span></Name>
   <Name><span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span></Name>
   <Stereotype><span class="oogexpression">◂wc.getStereotypes()▸</span></Stereotype>
   <Stereotype><span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Stereotypes"</span>){»</span><span class="oogexpression">◂⊙▸</span><span class="oogcode">«}/∀»</span></Stereotype>
<span class="oogindentation">  ⋮</span><span class="oogcode">«∀(<span class="oogpath">‖"Ⓟ/Attributes"</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>"/>
<span class="oogindentation">  ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span>
  </Class>
  </Class>
  <span class="oogcode">« } catch (Throwable t) { »</span><span class="oogcontinuation">…</span>
  <span class="oogcode">« } catch (Throwable t) { »</span><span class="oogcontinuation">…</span>

Revision as of 15:53, 23 July 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-plain_java-1.0 -*- coding: utf-8; -*-

import org.oomodels.wiml.*;
▼
⊏ signature(String wiml_code) ⊐
⊏ locatortarget Object = (Object object) ⊐
« try { WIMLClass wc = WIMLClass.parseWIML(wiml_code); object = wc; »
<Class>
  <Name>‖"Ⓟ/Name"</Name>
  <Stereotype>«∀(‖"Ⓟ/Stereotypes"){»◂⊙▸«}/∀»</Stereotype>
«∀(‖"Ⓟ/Attributes"){»
  <Attribute Name="‖"Ⓟ/Name"" Type="‖"Ⓟ/Type"" Stereotype="«∀(‖"Ⓟ/Stereotypes"){»◂⊙▸«}/∀»"/>
«}/∀»
</Class>
« } catch (Throwable t) { »
ERROR: ◂t▸
« } »