Artefact:Template/org/ooem/templates/wiml-1.0-xmi-2.0

Code
 G-2.0-java_jppi-1.0 -*- coding: utf-8; -*- ▼… import org.oomodels.wiml.*; import java.util.Map; import java.util.Vector; ▼… ▲…   public Vector getStatesInRegion(String expression, String region) { Vector result = new Vector; for (String term : expression.split("\\\u007C\\\u007C")) { String[] t = term.split("="); if (t.length > 1) { if (t[0].equals(region)) { result.add(t[1]); } } else { if ("main".equals(region)) { result.add(t[0]); } }       }        return result; } ▲… ⊏ signature(String wiml_code, Map page_properties,                             Map predefined_arguments,                              Map conversion_arguments,                              Map request_arguments) ⊐… « WIMLClass wc; try { wc = WIMLClass.parseWIML(wiml_code); object = wc; boolean has_associations = false; if (wc == null) { throw new org.oomodels.OOMStatusCode(204); } else { boolean complete_xml = "true".equals(predefined_arguments.get("CompleteXMLDocument")); String xmlns = complete_xml ? " xmlns=\"http://xmlns.sphenon.com/org/ooem\"" : ""; String indent = complete_xml ? "" : " "; »… «if(complete_xml) {»… ⋮ «}»… «¶(indent)»…   ⋮«∀(‖"Ⓟ/ModelTemplateArguments"){»… ⋮«}/∀»… ⋮«∀(‖"Ⓟ/CodeGeneratorTemplateArguments"){»… ⋮«}/∀»… ⋮«∀(‖"Ⓟ/ImplementationLanguageTemplateArguments"){»… ⋮«}/∀»…   ⋮«¬∅(‖"Ⓟ/Stereotypes"){»«∀(⊙){»… ⋮«}/∀»«}/¬∅»… ⋮« ⇾(⊙,WIMLStateMachine) {»… ⋮« }/⇾ »… ⋮«∀(‖"Ⓟ/Attributes"){if(‖"Ⓟ/Association" == null){»…  ⋮«∀(‖"Ⓟ/Stereotypes"){»… ⋮«}/∀»…   ⋮⊏ ➜ this.Extensions(object, "Attribute", "Extensions") ⊐… ⋮«}else{»…

     ⋮«¬∅(‖"Ⓟ/Stereotypes"){»«∀(⊙){»… ⋮«}/∀»«}/¬∅»…     ⋮«∃(‖"Ⓟ/OtherMultiplicity"){»… ⋮«}∨{»…     ⋮«}/∃»…      ⋮«∃(‖"Ⓟ/OtherName"){»… ⋮«}/∃»…   ⋮«●(‖"Ⓟ/Ends/1"){»⊏ ➜ this.Extensions(object, null, "Extensions") ⊐«}/●»… ⋮«●(‖"Ⓟ/Ends/0"){»⊏ ➜ this.Extensions(object, null, "OtherExtensions") ⊐«}/●»… ⋮⊏ ➜ this.Extensions(object, null, "Extensions") ⊐… ⋮«}}/∀»… ⋮«∀(‖"Ⓟ/Operations"){»… ⋮« ⇾(⊙,WIMLTransition) { }/⇾ »… ⋮«}/∀»… ⋮«∀(‖"Ⓟ/Views"){»… ⋮«}/∀»… ⋮⊏ ➜ this.Extensions(object, null, "Extensions") ⊐…  «/¶»… « } »… « } catch (org.oomodels.OOMStatusCode osc) { throw osc; } catch (Throwable t) { org.oomodels.OOMStatusCode osc = new org.oomodels.OOMStatusCode(204); //osc.setCause(t); throw osc; } »… ⊏ Ⓣ Extensions(Object object, String element, String tag) ⊐… ⋮«¬∅(‖"Ⓟ/Extensions"){»… ⋮«∀(⊙){»…   ⋮«}/∀»…  ⋮«}/¬∅»…  ⋮«¬∅(‖"Ⓟ/Extensions"){»… ⋮«∀(⊙){»…     ⋮«if(((String)(‖"Ⓟ/Name")).equals("UML")){»… ⋮«∀(‖"Ⓟ/Properties"){»… ⋮«}/∀»…     ⋮«}»…      ⋮«if(((String)(‖"Ⓟ/Name")).matches("UML\u007CWIML") == false){»… ⋮«}»…   ⋮«}/∀»…  ⋮«}/¬∅»… ⊏ /Ⓣ ⊐… 