summaryrefslogtreecommitdiff
path: root/src/main/resources/mapFiles/ModuleMap.xml
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2012-07-06 11:00:24 +0200
committerAndrew Branson <andrew.branson@cern.ch>2012-07-06 11:00:24 +0200
commit24314dc1699c7e73048fa24e33729f1aa1ec0e86 (patch)
treec97af82997783b860c36f4410973b23caff0d42e /src/main/resources/mapFiles/ModuleMap.xml
parentcc79e98c4763affba4fa2e17dfe5a412f9de66c3 (diff)
Modules serialize with Castor. Just about to remove the parsing.
CastorXMLUtility is now a static member of gateway. Domain specific instances can be used by domain applications, but the maps do not interfere with the kernel.
Diffstat (limited to 'src/main/resources/mapFiles/ModuleMap.xml')
-rw-r--r--src/main/resources/mapFiles/ModuleMap.xml116
1 files changed, 80 insertions, 36 deletions
diff --git a/src/main/resources/mapFiles/ModuleMap.xml b/src/main/resources/mapFiles/ModuleMap.xml
index 15fcb99..d858123 100644
--- a/src/main/resources/mapFiles/ModuleMap.xml
+++ b/src/main/resources/mapFiles/ModuleMap.xml
@@ -1,41 +1,85 @@
<?xml version="1.0"?>
<mapping>
<class name="com.c2kernel.process.module.Module">
- <map-to xml="CristalModule"/>
- <field name="ns" direct="true" type="string">
- <bind-xml name="ns" node="attribute"/>
- </field>
- <field name="name" direct="true" type="string">
- <bind-xml name="name" node="attribute"/>
- </field>
- <field name="desc" direct="true" type="string">
- <bind-xml name="Description" node="element"/>
- </field>
- <field name="version" direct="true" type="string">
- <bind-xml name="Version" node="element"/>
- </field>
- <field name="dependency" collection="arraylist" direct="true" type="string">
- <bind-xml name="Dependency" node="element"/>
- </field>
- <field name="resURL" direct="true" type="string">
- <bind-xml name="ResourceURL" node="element"/>
- </field>
- <field name="dependency" collection="arraylist" direct="true" type="string">
- <bind-xml name="Dependency" node="element"/>
- </field>
- <field name="imports" collection="arraylist" direct="true"
- type="com.c2kernel.process.module.ModuleImport">
- <bind-xml auto-naming="deriveByClass" node="element"/>
- <field name="importName" direct="true" type="string">
- <bind-xml name="name" node="attribute"/>
- </field>
- </field>
- </class>
- <class name="com.c2kernel.process.module.ModuleItem"
- extends="com.c2kernel.process.module.ModuleImport">
- <map-to xml="Item"/>
- <field name="workflow" direct="true" type="string">
- <bind-xml name="workflow" node="attribute"/>
- </field>
+ <map-to xml="CristalModule" />
+ <field name="ns" direct="true" type="string">
+ <bind-xml name="ns" node="attribute" />
+ </field>
+ <field name="name" direct="true" type="string">
+ <bind-xml name="name" node="attribute" />
+ </field>
+ <field name="info" direct="true" type="com.c2kernel.process.module.ModuleInfo">
+ <bind-xml name="Info" node="element" />
+ </field>
+ <field name="resURL" direct="true" type="string">
+ <bind-xml name="ResourceURL" node="element" />
+ </field>
+ <field name="imports" direct="true" type="com.c2kernel.process.module.ModuleImports">
+ <bind-xml name="Imports" node="element" />
+ </field>
+ <field name="config" collection="arraylist" direct="true" type="com.c2kernel.process.module.ModuleConfig">
+ <bind-xml name="Config" node="element" />
+ </field>
+ <field name="scripts" collection="arraylist" direct="true" type="com.c2kernel.process.module.ModuleScript">
+ <bind-xml name="Script" node="element" />
+ </field>
</class>
+ <class name="com.c2kernel.process.module.ModuleImports">
+ <map-to xml="Imports"/>
+ <field name="list" collection="arraylist" direct="true" type="com.c2kernel.process.module.ModuleImport">
+ <bind-xml auto-naming="deriveByClass" node="element" />
+ </field>
+ </class>
+ <class name="com.c2kernel.process.module.ModuleInfo">
+ <map-to xml="Info"/>
+ <field name="desc" direct="true" type="string">
+ <bind-xml name="Description" node="element" />
+ </field>
+ <field name="version" direct="true" type="string">
+ <bind-xml name="Version" node="element" />
+ </field>
+ <field name="dependency" collection="arraylist" direct="true"
+ type="string">
+ <bind-xml name="Dependency" node="element" />
+ </field>
+ </class>
+ <class name="com.c2kernel.process.module.ModuleResource" extends="com.c2kernel.process.module.ModuleImport">
+ <map-to xml="Resource"/>
+ <field name="name" direct="true" type="string">
+ <bind-xml name="name" node="attribute" />
+ </field>
+ <field name="resourceType" direct="true" type="string">
+ <bind-xml name="type" node="attribute" />
+ </field>
+ <field name="resourceLocation" direct="true" type="string">
+ <bind-xml node="text" />
+ </field>
+ </class>
+ <class name="com.c2kernel.process.module.ModuleConfig">
+ <map-to xml="Config"/>
+ <field name="name" direct="true" type="string">
+ <bind-xml name="name" node="attribute" />
+ </field>
+ <field name="target" direct="true" type="string">
+ <bind-xml name="target" node="attribute" />
+ </field>
+ <field name="value" direct="true" type="string">
+ <bind-xml node="text" />
+ </field>
+ </class>
+ <class name="com.c2kernel.process.module.ModuleScript">
+ <map-to xml="Script"/>
+ <field name="target" direct="true" type="string">
+ <bind-xml name="target" node="attribute" />
+ </field>
+ <field name="event" direct="true" type="string">
+ <bind-xml name="event" node="attribute" />
+ </field>
+ <field name="lang" direct="true" type="string">
+ <bind-xml name="lang" node="attribute" />
+ </field>
+ <field name="script" direct="true" type="string">
+ <bind-xml node="text" />
+ </field>
+ </class>
</mapping>