Difference between revisions of "Artefact:Template/org/ooem/templates/bundleentries-1.0-ooem-2.0"

From OOModels
Jump to navigationJump to search
Line 16: Line 16:
▼…
▼…
⊏ signature(String xml_code) ⊐…
⊏ signature(String xml_code) ⊐…
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OOEMPackage>
«  
«  
   try {
   try {
Line 28: Line 30:
◂data▸
◂data▸
   ⋮«}/∀»…
   ⋮«}/∀»…
</OOEMPackage>
«  
«  
   } catch (Throwable t) {
   } catch (Throwable t) {

Revision as of 13:53, 19 March 2012

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.*;
import java.util.Vector;
▼
⊏ signature(String xml_code) ⊐
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OOEMPackage>
« 
  try {
    Vector<String[]> entries = XMLBundleEntriesReader.getEntries(xml_code.toString());
»«∀(entries){»«
        OOMPage oomp = new OOMPage(((String[])(⊙))[0]);
        OOMResource oomr = oomp.getResource("raw--wiml-1.0-ooem-class-2.0-fragment");
        String data = oomr.getData();
      »
◂data▸«}/∀»
</OOEMPackage>
« 
  } catch (Throwable t) {
    org.oomodels.OOMStatusCode osc = new org.oomodels.OOMStatusCode(204);
    //osc.setCause(t);
    throw osc;
  }
»