-<?xml version="1.0"?>
-<!--
-
- Copyright (C) 2007-2012 Mathieu Baudier
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<!-- Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org> Licensed under
- the Apache License, Version 2.0 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of the License
- at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
- law or agreed to in writing, software distributed under the License is distributed
- on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- express or implied. See the License for the specific language governing permissions
- and limitations under the License. -->
-
-
-<mapping>
- <description>Message objects XML mapping</description>
-
- <!-- TODO: use XML entities to factorize patterns -->
-
- <!-- BASIC -->
- <class name="org.argeo.slc.msg.ExecutionAnswer">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="status" />
- <field name="message" />
- </class>
-
- <class name="org.argeo.slc.msg.ReferenceList">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="references" collection="arraylist" type="string">
- <bind-xml name="ref" />
- </field>
- </class>
-
- <class name="org.argeo.slc.msg.ObjectList">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="objects" collection="arraylist" type="java.io.Serializable">
- <bind-xml auto-naming="deriveByClass" />
- </field>
- </class>
-
- <!-- BUILD -->
- <class name="org.argeo.slc.msg.build.ModularDistributionDescriptor"
- extends="org.argeo.slc.BasicNameVersion">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="modulesDescriptors" collection="map">
- <bind-xml name="modulesDescriptor" location="modulesDescriptors">
- <class name="org.exolab.castor.mapping.MapItem">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="key" type="string">
- <bind-xml name="type" node="attribute" />
- </field>
- <field name="value" type="string">
- <bind-xml name="url" node="attribute" />
- </field>
- </class>
- </bind-xml>
- </field>
- </class>
-
- <!-- TESTS -->
- <class name="org.argeo.slc.msg.test.tree.CreateTreeTestResultRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="treeTestResult" type="org.argeo.slc.core.test.tree.TreeTestResult" />
- <field name="testRunDescriptor" />
- </class>
-
- <class name="org.argeo.slc.msg.test.tree.CloseTreeTestResultRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="resultUuid" />
- <field name="closeDate" />
- </class>
-
- <class name="org.argeo.slc.msg.test.tree.AddTreeTestResultAttachmentRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="resultUuid" />
- <field name="attachment" type="org.argeo.slc.core.attachment.SimpleAttachment">
- <bind-xml auto-naming="deriveByClass" />
- </field>
- </class>
-
- <class name="org.argeo.slc.msg.test.tree.ResultPartRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="resultUuid" />
- <field name="resultPart" type="org.argeo.slc.core.test.SimpleResultPart">
- <bind-xml auto-naming="deriveByClass" />
- </field>
-
- <field name="relatedElements" collection="map">
- <bind-xml name="element" location="related-elements">
- <class name="org.exolab.castor.mapping.MapItem">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="key" type="org.argeo.slc.core.structure.tree.TreeSPath"
- handler="org.argeo.slc.castor.structure.tree.TreeSPathFieldHandler">
- <bind-xml name="path" node="attribute" />
- </field>
- <field name="value" type="org.argeo.slc.core.structure.SimpleSElement">
- <bind-xml auto-naming="deriveByClass" />
- </field>
- </class>
- </bind-xml>
- </field>
- <field name="path">
- <bind-xml auto-naming="deriveByClass" />
- </field>
- <field name="testRunDescriptor" />
- <field name="attributes" collection="hashtable">
- <bind-xml name="attribute" location="attributes">
- <class name="org.exolab.castor.mapping.MapItem">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="key" type="string">
- <bind-xml name="name" node="attribute" />
- </field>
- <field name="value" type="string">
- <bind-xml node="text" />
- </field>
- </class>
- </bind-xml>
- </field>
- </class>
-
- <class name="org.argeo.slc.core.test.tree.ResultAttributes">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="uuid" />
- <field name="closeDate" />
- <field name="attributes" collection="hashtable">
- <bind-xml name="attribute" location="attributes">
- <class name="org.exolab.castor.mapping.MapItem">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="key" type="string">
- <bind-xml name="name" node="attribute" />
- </field>
- <field name="value" type="string">
- <bind-xml node="text" />
- </field>
- </class>
- </bind-xml>
- </field>
- <field name="attachments" collection="arraylist"
- type="org.argeo.slc.core.attachment.SimpleAttachment">
- <bind-xml auto-naming="deriveByClass" location="attachments" />
- </field>
- </class>
-
-
- <!-- PROCESS -->
- <class name="org.argeo.slc.msg.process.SlcExecutionStepsRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="slcExecutionUuid" />
- <field name="steps" collection="arraylist"
- type="org.argeo.slc.process.SlcExecutionStep">
- <bind-xml auto-naming="deriveByClass" location="steps" />
- </field>
- </class>
-
- <class name="org.argeo.slc.msg.process.SlcExecutionStatusRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="slcExecutionUuid" />
- <field name="newStatus" />
- </class>
-
- <class name="org.argeo.slc.msg.process.SlcExecutionRequest">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="slcExecution" type="org.argeo.slc.process.SlcExecution" />
- </class>
-
- <!-- EVENTS -->
-
- <class name="org.argeo.slc.msg.event.SlcEvent">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="headers" collection="map">
- <bind-xml name="header" location="headers">
- <class name="org.exolab.castor.mapping.MapItem">
- <map-to ns-uri="http://argeo.org/projects/slc/schemas"
- ns-prefix="slc" />
- <field name="key" type="string">
- <bind-xml name="name" node="attribute" />
- </field>
- <field name="value" type="string">
- <bind-xml node="text" />
- </field>
- </class>
- </bind-xml>
- </field>
- </class>
-
-</mapping>
\ No newline at end of file