Difference between revisions of "Artefact:Template/org/oogenerator/examples/codegeneration/ooem-1.0-java-pojoraw-1.0"

From OOModels
Jump to navigationJump to search
(New page: {{Metabox | Meta_Type = Type:org/oogenerator/Template/2.0 | Meta_Domain = Domain:it/development/formatting | Meta_Category = Type:org/oomodels/wiki/Template | Meta_Download = true | ...)
 
Line 10: Line 10:


<div class="code">
<div class="code">
  <span class="oogintro">G-2.0-plain_java-1.0</span>
  <span class="oogintro">G-2.0-uml-1.0 -*- coding: utf-8; -*-</span>
  <span class="oogcomment">
  package <span class="oogexpression"><span class="oogpath">"Ⓟ/ModelParent/Path"</span>▸</span>;
 
  This templates demonstrates Java code generation from an OOEM model.
 
⊱</span>
<span class="oogtemplatecode">⊏ signature(String my_arg = "world") ⊐</span>
   
   
     Hello, <span class="oogexpression">◂my_arg▸</span>!
public interface <span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span> {
   
<span class="oogindentation">  ⋮</span><span class="oogcode">«∀(a:<span class="oogpath">‖"Ⓟ/Attributes"</span>){»</span><span class="oogcontinuation">…</span>
</div>
     public <span class="oogtag">⋖type⋗</span> get<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span> (CallContext context);
    public void set<span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span>▸</span> (CallContext context, <span class="oogtag">⋖type⋗</span> <span class="oogexpression">◂<span class="oogpath">‖"Ⓟ/Name"</span><span class="oogencoding">⌘MC/LCU/JAVAID</span>▸</span>);
<span class="oogindentation">  ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span>
  }
</div>

Revision as of 15:11, 10 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)

OOGenerator main package

create new pages

Code[edit]

G-2.0-uml-1.0 -*- coding: utf-8; -*-
package ‖"Ⓟ/ModelParent/Path";

public interface ‖"Ⓟ/Name" {
«∀(a:‖"Ⓟ/Attributes"){»
    public ⋖type⋗ get‖"Ⓟ/Name" (CallContext context);
    public void set‖"Ⓟ/Name" (CallContext context, ⋖type⋗ ‖"Ⓟ/Name"⌘MC/LCU/JAVAID);
«}/∀»
}