You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/05/16 06:54:31 UTC

svn commit: r944765 - in /synapse/trunk/java/repository/schema: mediators/ mediators/in.xsd mediators/mediators.xsd sequence.xsd

Author: ruwan
Date: Sun May 16 04:54:31 2010
New Revision: 944765

URL: http://svn.apache.org/viewvc?rev=944765&view=rev
Log:
starting to add mediators (of course one by one :-))

Added:
    synapse/trunk/java/repository/schema/mediators/
    synapse/trunk/java/repository/schema/mediators/in.xsd
    synapse/trunk/java/repository/schema/mediators/mediators.xsd
Modified:
    synapse/trunk/java/repository/schema/sequence.xsd

Added: synapse/trunk/java/repository/schema/mediators/in.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/mediators/in.xsd?rev=944765&view=auto
==============================================================================
--- synapse/trunk/java/repository/schema/mediators/in.xsd (added)
+++ synapse/trunk/java/repository/schema/mediators/in.xsd Sun May 16 04:54:31 2010
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you 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.
+  -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+           targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
+           xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
+    <xs:include schemaLocation="mediators.xsd"/>
+    
+    <xs:element name="in">
+        <xs:annotation>
+            <xs:documentation source="description">
+                Resources like XSDs to be provided to the WSDL and so forth
+            </xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:group ref="mediatorList" minOccurs="1" maxOccurs="unbounded"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+
+</xs:schema>
\ No newline at end of file

Added: synapse/trunk/java/repository/schema/mediators/mediators.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/mediators/mediators.xsd?rev=944765&view=auto
==============================================================================
--- synapse/trunk/java/repository/schema/mediators/mediators.xsd (added)
+++ synapse/trunk/java/repository/schema/mediators/mediators.xsd Sun May 16 04:54:31 2010
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you 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.
+  -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+           targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
+           xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
+    <xs:include schemaLocation="in.xsd"/>
+
+    <xs:group name="mediatorList">
+        <xs:annotation>
+            <xs:documentation source="description">
+                This group denotes all the mediator elements that can come inside a sequence
+            </xs:documentation>
+        </xs:annotation>
+        <xs:choice>
+            <xs:element ref="in"/>
+        </xs:choice>
+    </xs:group>
+
+</xs:schema>
\ No newline at end of file

Modified: synapse/trunk/java/repository/schema/sequence.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/sequence.xsd?rev=944765&r1=944764&r2=944765&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/sequence.xsd (original)
+++ synapse/trunk/java/repository/schema/sequence.xsd Sun May 16 04:54:31 2010
@@ -22,6 +22,8 @@
            targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
            xmlns="http://synapse.apache.org/ns/2010/04/configuration">
 
+    <xs:include schemaLocation="mediators/mediators.xsd"/>
+
     <xs:element name="sequence" type="NamedSequence">
         <xs:annotation>
             <xs:documentation source="description">
@@ -36,7 +38,11 @@
                 Sequence contains a set of mediators
             </xs:documentation>
         </xs:annotation>
-        <xs:attribute name="name" use="required"/>
+        <xs:sequence>
+            <xs:group ref="mediatorList" minOccurs="1" maxOccurs="unbounded"/>
+        </xs:sequence>
+        <xs:attribute name="name" type="xs:string" use="required"/>
+        <xs:attribute name="onError" type="xs:string" use="optional"/>
     </xs:complexType>
     
 </xs:schema>
\ No newline at end of file