Difference between revisions of "Artefact:Template/org/ooem/templates/bundleentries-1.0-ooem-2.0"
From OOModels
< Artefact:Template | org | ooem | templates
Jump to navigationJump to search
AndreasLeue (talk | contribs) (→Code) |
AndreasLeue (talk | contribs) |
||
Line 22: | Line 22: | ||
<Package xmlns="http://xmlns.sphenon.com/org/ooem" OID="root"> | <Package xmlns="http://xmlns.sphenon.com/org/ooem" OID="root"> | ||
<Name>root</Name> | <Name>root</Name> | ||
HAHA: ◂xml_code.toString()▸ | |||
« | « | ||
try { | try { | ||
Line 27: | Line 28: | ||
»… | »… | ||
⋮«∀(entries){»… | ⋮«∀(entries){»… | ||
⋮« | ⋮« | ||
OOMPage oomp = new OOMPage(((String[])(⊙))[0], null); | OOMPage oomp = new OOMPage(((String[])(⊙))[0], null); |
Revision as of 12:11, 31 August 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; import java.util.Map; ▼… ⊏ signature(String xml_code, Map<String,String> predefined_arguments, Map<String,String> conversion_arguments, Map<String,String> request_arguments) ⊐… <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package xmlns="http://xmlns.sphenon.com/org/ooem" OID="root"> <Name>root</Name> HAHA: ◂xml_code.toString()▸ « try { Vector<String[]> entries = XMLBundleEntriesReader.getEntries(xml_code.toString()); »… ⋮«∀(entries){»… ⋮« OOMPage oomp = new OOMPage(((String[])(⊙))[0], null); OOMResource oomr = oomp.getResource("raw--wiml-1.0-ooem-class-2.0-fragment"); String data = oomr.getData(); »… ◂data▸ ⋮«}/∀»… </Package> « } catch (Throwable t) { org.oomodels.OOMStatusCode osc = new org.oomodels.OOMStatusCode(204); //osc.setCause(t); throw osc; } »…