You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by aj...@apache.org on 2006/09/20 12:14:37 UTC
svn commit: r448147 [2/2] - /incubator/tuscany/interop/src/main/resources/
Modified: incubator/tuscany/interop/src/main/resources/interop11-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop11-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop11-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop11-in.xml Wed Sep 20 03:14:34 2006
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
- <tns:RootElement11 xmlns:tns="http://www.apache.org/tuscany/interop"
+ <RootElement11 xmlns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop11.xsd">
- <tns:SimpleTypeAnonymous>
- tns:SimpleTypeAnonymous
- </tns:SimpleTypeAnonymous>
-</tns:RootElement11>
+ <SimpleTypeAnonymous>
+ SimpleTypeAnonymous
+ </SimpleTypeAnonymous>
+</RootElement11>
Added: incubator/tuscany/interop/src/main/resources/interop13-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop13-in.xml?view=auto&rev=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop13-in.xml (added)
+++ incubator/tuscany/interop/src/main/resources/interop13-in.xml Wed Sep 20 03:14:34 2006
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ -->
+<RootElement13 xmlns="http://www.apache.org/tuscany/interop"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.apache.org/tuscany/interop interop13.xsd">
+ <SimpleTypeWithAbstractBase>SimpleTypeWithAbstractBase</SimpleTypeWithAbstractBase>
+</RootElement13>
Modified: incubator/tuscany/interop/src/main/resources/interop13.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop13.xsd?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop13.xsd (original)
+++ incubator/tuscany/interop/src/main/resources/interop13.xsd Wed Sep 20 03:14:34 2006
@@ -21,11 +21,15 @@
<simpleType name="SimpleTypeWithAbstractType" abstract="true">
<restriction base="string"/>
</simpleType>
+
+ <simpleType name="SimpleTypeWithAbstractBase">
+ <restriction base="tns:SimpleTypeWithAbstractType"/>
+ </simpleType>
<element name="RootElement13">
<complexType>
<sequence>
- <element name="SimpleTypeWithAbstract" type="tns:SimpleTypeWithAbstractType"/>
+ <element name="SimpleTypeWithAbstractBase" type="tns:SimpleTypeWithAbstractBase"/>
</sequence>
</complexType>
</element>
Modified: incubator/tuscany/interop/src/main/resources/interop20-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop20-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop20-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop20-in.xml Wed Sep 20 03:14:34 2006
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
-<tns:RootElement20 xmlns:tns="http://www.apache.org/tuscany/interop"
+<RootElement20 xmlns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop20.xsd">
- <tns:ComplexTypeAnonymousType>
+ <ComplexTypeAnonymousType>
<SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName>
- </tns:ComplexTypeAnonymousType>
-</tns:RootElement20>
+ </ComplexTypeAnonymousType>
+</RootElement20>
Modified: incubator/tuscany/interop/src/main/resources/interop30-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop30-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop30-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop30-in.xml Wed Sep 20 03:14:34 2006
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
-<tns:RootElement30 xmlns:tns="http://www.apache.org/tuscany/interop"
+<RootElement30 xmlns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop30.xsd">
<ComplexTypeOpenContent>
@@ -25,4 +25,4 @@
Content
</ComplexTypeWithMixed>
</ComplexTypeOpenContent>
-</tns:RootElement30>
+</RootElement30>
Modified: incubator/tuscany/interop/src/main/resources/interop32-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop32-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop32-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop32-in.xml Wed Sep 20 03:14:34 2006
@@ -17,5 +17,16 @@
<tns:RootElement32 xmlns:tns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop32.xsd">
- <ComplexTypeOppositePropertyTest AttributeWithSDOPropertyType="idvalue0" />
+
+ <ComplexTypeReferencedDataObject DataObjectId="idvalue0">
+ <SomeData>some data string</SomeData>
+ </ComplexTypeReferencedDataObject>
+
+ <ComplexTypeReferencingDataObject DataObjectId="idvalue1"
+ AttributeWithSDOPropertyType="idvalue0">
+ <OppositeProperty>idvalue2</OppositeProperty>
+ </ComplexTypeReferencingDataObject>
+
+ <ComplexTypeOppositeProperty DataObjectId="idvalue2"
+ AttributeWithSDOPropertyType="idvalue1" />
</tns:RootElement32>
Modified: incubator/tuscany/interop/src/main/resources/interop32.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop32.xsd?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop32.xsd (original)
+++ incubator/tuscany/interop/src/main/resources/interop32.xsd Wed Sep 20 03:14:34 2006
@@ -18,18 +18,38 @@
targetNamespace="http://www.apache.org/tuscany/interop"
xmlns:tns="http://www.apache.org/tuscany/interop"
xmlns:sdo="commonj.sdo">
-
+
+ <complexType name="ComplexTypeReferencedDataObjectType">
+ <sequence>
+ <element name="SomeData" type="string"/>
+ </sequence>
+ <attribute name="DataObjectId" type="ID"/>
+ </complexType>
+
+ <complexType name="ComplexTypeReferencingDataObjectType">
+ <sequence>
+ <element name="OppositeProperty" type="ID"/>
+ </sequence>
+ <attribute name="AttributeWithSDOPropertyType" type="IDREF"
+ sdo:propertyType="tns:ComplexTypeReferencedDataObjectType"/>
+ <attribute name="DataObjectId" type="ID"/>
+ </complexType>
- <complexType name="ComplexTypeOppositePropertyTestType">
+ <complexType name="ComplexTypeOppositePropertyType">
<sequence>
</sequence>
- <attribute name="AttributeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:ComplexTypeAttributesTestType"/>
+ <attribute name="AttributeWithSDOPropertyType" type="IDREF"
+ sdo:propertyType="tns:ComplexTypeReferencingDataObjectTestType"
+ sdo:oppositeProperty="OppositeProperty"/>
+ <attribute name="DataObjectId" type="ID"/>
</complexType>
<element name="RootElement32">
<complexType>
<sequence>
- <element name="ComplexTypeOppositePropertyTest" type="tns:ComplexTypeOppositePropertyTestType"/>
+ <element name="ComplexTypeReferencedDataObject" type="tns:ComplexTypeReferencedDataObjectType"/>
+ <element name="ComplexTypeReferencingDataObject" type="tns:ComplexTypeReferencingDataObjectType"/>
+ <element name="ComplexTypeOppositeProperty" type="tns:ComplexTypeOppositePropertyType"/>
</sequence>
</complexType>
</element>
Modified: incubator/tuscany/interop/src/main/resources/interop33-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop33-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop33-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop33-in.xml Wed Sep 20 03:14:34 2006
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
-<tns:RootElement33 xmlns:tns="http://www.apache.org/tuscany/interop"
+<RootElement33 xmlns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop33.xsd">
@@ -27,5 +27,5 @@
AttributeWithSDOPropertySDOOppositePropertyType="idvalue0"
AttributeWithSDOPropertyType="idvalue0"
AttributeWithSDOString="AttributeWithSDOString"
- tns:AttributeReference="AttributeReference"/>
-</tns:RootElement33>
+ AttributeReference="AttributeReference"/>
+</RootElement33>
Modified: incubator/tuscany/interop/src/main/resources/interop37-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop37-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop37-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop37-in.xml Wed Sep 20 03:14:34 2006
@@ -17,5 +17,6 @@
<tns:RootElement37 xmlns:tns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop37.xsd">
- <ElementInChoice>ElementInChoice</ElementInChoice>
+ <Element1InChoice>Element1InChoice</Element1InChoice>
+ <Element2InChoice>Element2InChoice</Element2InChoice>
</tns:RootElement37>
Modified: incubator/tuscany/interop/src/main/resources/interop37.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop37.xsd?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop37.xsd (original)
+++ incubator/tuscany/interop/src/main/resources/interop37.xsd Wed Sep 20 03:14:34 2006
@@ -18,11 +18,26 @@
targetNamespace="http://www.apache.org/tuscany/interop"
xmlns:tns="http://www.apache.org/tuscany/interop">
+ <group name="Group1">
+ <sequence>
+ <element name="Element1InChoice" type="string" maxOccurs="2"/>
+ <element name="Element2InChoice" type="string" />
+ </sequence>
+ </group>
+
+ <group name="Group2">
+ <sequence>
+ <element name="Element2InChoice" type="string" />
+ <element name="Element1InChoice" type="string" maxOccurs="2"/>
+ </sequence>
+ </group>
+
<element name="RootElement37">
<complexType>
<sequence>
<choice maxOccurs="3">
- <element name="ElementInChoice" type="string" maxOccurs="2"/>
+ <group ref="tns:Group1"/>
+ <group ref="tns:Group2"/>
</choice>
</sequence>
</complexType>
Modified: incubator/tuscany/interop/src/main/resources/interop39-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop39-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop39-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop39-in.xml Wed Sep 20 03:14:34 2006
@@ -18,4 +18,5 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop39.xsd">
<ElementWithNillable/>
+ <ElementWithNillable xsi:nil="true"/>
</tns:RootElement39>
Modified: incubator/tuscany/interop/src/main/resources/interop39.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop39.xsd?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop39.xsd (original)
+++ incubator/tuscany/interop/src/main/resources/interop39.xsd Wed Sep 20 03:14:34 2006
@@ -22,7 +22,7 @@
<element name="RootElement39">
<complexType>
<sequence>
- <element name="ElementWithNillable" type="string" nillable="true"/>
+ <element name="ElementWithNillable" type="string" nillable="true" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
Modified: incubator/tuscany/interop/src/main/resources/interop40-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop40-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop40-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop40-in.xml Wed Sep 20 03:14:34 2006
@@ -14,15 +14,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
-<tns:RootElement40 xmlns:tns="http://www.apache.org/tuscany/interop"
+<RootElement40 xmlns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop40.xsd">
- <tns:ElementSubstitutionGroupExtends>
+
+ <ElementSubstitutionGroupBase>
+ <ElementInSubstitutionGroupBase>
+ ElementInSubstitutionGroupBase
+ </ElementInSubstitutionGroupBase>
+ </ElementSubstitutionGroupBase>
+
+ <ElementSubstitutionUnrelated>Some Data</ElementSubstitutionUnrelated>
+
+ <ElementSubstitutionGroupExtends>
<ElementInSubstitutionGroupBase>
ElementInSubstitutionGroupBase
</ElementInSubstitutionGroupBase>
<ElementInSubstitutionGroupExtends>
ElementInSubstitutionGroupExtends
</ElementInSubstitutionGroupExtends>
- </tns:ElementSubstitutionGroupExtends>
-</tns:RootElement40>
+ </ElementSubstitutionGroupExtends>
+
+
+</RootElement40>
Modified: incubator/tuscany/interop/src/main/resources/interop40.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop40.xsd?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop40.xsd (original)
+++ incubator/tuscany/interop/src/main/resources/interop40.xsd Wed Sep 20 03:14:34 2006
@@ -24,8 +24,10 @@
</sequence>
</complexType>
<element name="ElementSubstitutionGroupBase" type="tns:ComplexTypeSubstitutionGroupBaseType"/>
+
+ <element name="ElementSubstitutionGroupUnrelated" type="string" substitutionGroup="tns:ElementSubstitutionGroupBase"/>
- <complexType name="ComplexTypeSubstitutionGroupExtendsType">
+ <complexType name="ComplexTypeSubstitutionGroupExtendsType">
<complexContent>
<extension base="tns:ComplexTypeSubstitutionGroupBaseType">
<sequence>
@@ -40,7 +42,7 @@
<element name="RootElement40">
<complexType>
<sequence>
- <element ref="tns:ElementSubstitutionGroupBase" />
+ <element ref="tns:ElementSubstitutionGroupBase" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
Modified: incubator/tuscany/interop/src/main/resources/interop47-in.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/interop47-in.xml?view=diff&rev=448147&r1=448146&r2=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/interop47-in.xml (original)
+++ incubator/tuscany/interop/src/main/resources/interop47-in.xml Wed Sep 20 03:14:34 2006
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
-<tns:RootElement47 xmlns:tns="http://www.apache.org/tuscany/interop"
+<RootElement47 xmlns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop47.xsd">
- <ElementOfSDOChangeSummaryType>
- <ChangeSummaryElement>
- ChangeSummaryText
- </ChangeSummaryElement>
+ <ElementOfSDOChangeSummaryType create="abc" delete="def" logging="true">
+ <ChangeSummaryElement>
+ ChangeSummaryText
+ </ChangeSummaryElement>
</ElementOfSDOChangeSummaryType>
-</tns:RootElement47>
+</RootElement47>
Added: incubator/tuscany/interop/src/main/resources/sdoJava.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/sdoJava.xsd?view=auto&rev=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/sdoJava.xsd (added)
+++ incubator/tuscany/interop/src/main/resources/sdoJava.xsd Wed Sep 20 03:14:34 2006
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/**
+ * <copyright>
+ *
+ * Service Data Objects
+ * Version 2.0
+ * Licensed Materials - Property of BEA and IBM
+ *
+ * (c) Copyright BEA Systems, Inc. and International Business Machines Corp 2005. All rights reserved.
+ *
+ * </copyright>
+ *
+ */
+-->
+
+<xsd:schema
+ targetNamespace="commonj.sdo/java"
+ xmlns:sdoJava="commonj.sdo/java"
+ xmlns:sdo="commonj.sdo"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+<xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/>
+
+<!--
+ These attributes are used to customize the Java mapping of
+ XSD to SDO Types and Properties.
+-->
+
+<xsd:attribute name="package" type="xsd:string" />
+<xsd:attribute name="instanceClass" type="xsd:string" />
+<xsd:attribute name="extendedInstanceClass" type="xsd:string" />
+<xsd:attribute name="nestedInterfaces" type="xsd:boolean" />
+
+<!--
+ JavaInfo declares properties used in open content for
+ the Java binding of SDO Types and Properties.
+-->
+
+<!-- FIXME need this global attribute because as per spec Type's with JavaInfo.javaClass cannot be (de)serialized -->
+<xsd:attribute name="javaClass" type="sdo:String"/>
+
+<xsd:complexType name="JavaInfo">
+ <xsd:attribute ref="sdoJava:javaClass"/>
+</xsd:complexType>
+
+<!--
+ The Java object data types.
+-->
+
+<xsd:simpleType name="BooleanObject" sdoJava:instanceClass="java.lang.Boolean">
+ <xsd:restriction base="xsd:boolean"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="ByteObject" sdoJava:instanceClass="java.lang.Byte">
+ <xsd:restriction base="xsd:byte"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="CharacterObject" sdoJava:instanceClass="java.lang.Character">
+ <xsd:restriction base="xsd:string"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="DoubleObject" sdoJava:instanceClass="java.lang.Double">
+ <xsd:restriction base="xsd:double"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="FloatObject" sdoJava:instanceClass="java.lang.Float">
+ <xsd:restriction base="xsd:float"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="IntObject" sdoJava:instanceClass="java.lang.Integer">
+ <xsd:restriction base="xsd:int"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="LongObject" sdoJava:instanceClass="java.lang.Long">
+ <xsd:restriction base="xsd:long"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="ShortObject" sdoJava:instanceClass="java.lang.Short">
+ <xsd:restriction base="xsd:short"/>
+</xsd:simpleType>
+
+</xsd:schema>
Added: incubator/tuscany/interop/src/main/resources/sdoModel.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/interop/src/main/resources/sdoModel.xsd?view=auto&rev=448147
==============================================================================
--- incubator/tuscany/interop/src/main/resources/sdoModel.xsd (added)
+++ incubator/tuscany/interop/src/main/resources/sdoModel.xsd Wed Sep 20 03:14:34 2006
@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/**
+ * <copyright>
+ *
+ * Service Data Objects
+ * Version 2.0
+ * Licensed Materials - Property of BEA and IBM
+ *
+ * (c) Copyright BEA Systems, Inc. and International Business Machines Corp 2005. All rights reserved.
+ *
+ * </copyright>
+ *
+ */
+
+-->
+
+<xsd:schema
+ targetNamespace="commonj.sdo"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:sdo="commonj.sdo"
+ xmlns:sdoXML="commonj.sdo/xml"
+ xmlns:sdoJava="commonj.sdo/java"
+ elementFormDefault="qualified"
+ xsi:schemaLocation="commonj.sdo/xml sdoXML.xsd
+ commonj.sdo/java sdoJava.xsd">
+
+<xsd:include schemaLocation="datagraph.xsd"/>
+
+<!-- Root element for defining several Types in one document.
+ Is not part of the model.
+-->
+<xsd:element name="types" type="sdo:Types"/>
+<xsd:complexType name="Types">
+ <xsd:sequence>
+ <xsd:element name="type" type="sdo:Type" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+</xsd:complexType>
+
+<!-- Any data object may be serialized with this element,
+ with xsi:type to declare the
+ actual type of the DataObject serialized.
+-->
+<xsd:element name="dataObject" type="xsd:anyType"/>
+
+<!-- Model Types
+ SDO Type and Property are defined in terms of themselves.
+-->
+<xsd:element name="type" type="sdo:Type"/>
+<xsd:complexType name="Type">
+ <xsd:sequence>
+ <xsd:element name="baseType" type="sdo:URI"
+ minOccurs="0" maxOccurs="unbounded"
+ sdoXML:propertyType="sdo:Type" />
+ <xsd:element name="property" type="sdo:Property"
+ minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="aliasName" type="sdo:String"
+ minOccurs="0" maxOccurs="unbounded" />
+ <xsd:any namespace="##other" processContents="lax"
+ minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:ID" sdo:dataType="sdo:String"/>
+ <xsd:attribute name="uri" type="sdo:URI"/>
+ <xsd:attribute name="dataType" type="sdo:Boolean"/>
+ <xsd:attribute name="open" type="sdo:Boolean"/>
+ <xsd:attribute name="sequenced" type="sdo:Boolean"/>
+ <xsd:attribute name="abstract" type="sdo:Boolean"/>
+ <xsd:anyAttribute namespace="##any" processContents="lax"/>
+</xsd:complexType>
+
+<xsd:complexType name="Property">
+ <xsd:sequence>
+ <xsd:element name="aliasName" type="sdo:String"
+ minOccurs="0" maxOccurs="unbounded" />
+ <xsd:any namespace="##other" processContents="lax"
+ minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="sdo:String"/>
+ <xsd:attribute name="many" type="sdo:Boolean"/>
+ <xsd:attribute name="containment" type="sdo:Boolean"/>
+ <xsd:attribute name="default" type="sdo:String"/>
+ <xsd:attribute name="readOnly" type="sdo:Boolean"/>
+ <xsd:attribute name="type" type="sdo:URI" sdoXML:propertyType="sdo:Type" />
+ <xsd:attribute name="opposite" type="sdo:URI" sdoXML:propertyType="sdo:Property" />
+ <xsd:anyAttribute namespace="##any" processContents="lax"/>
+</xsd:complexType>
+
+<!-- Special Types -->
+<xsd:complexType name="DataObject" abstract="true"/>
+
+<xsd:complexType name="TextType" abstract="true">
+ <xsd:sequence>
+ <xsd:element name="text" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
+ </xsd:sequence>
+</xsd:complexType>
+
+<!-- ChangeSummaryType is defined in datagraph.xsd.
+ Although declared there as a ComplexType,
+ at the model level it is treated as a SimpleType
+ with a special XML serialization.
+-->
+
+
+<!-- Data Types -->
+<xsd:simpleType name="Boolean" sdoJava:instanceClass="boolean">
+ <xsd:restriction base="xsd:boolean"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Byte" sdoJava:instanceClass="byte">
+ <xsd:restriction base="xsd:byte"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Bytes" sdoJava:instanceClass="byte[]">
+ <xsd:restriction base="xsd:hexBinary"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Character" sdoJava:instanceClass="char">
+ <xsd:restriction base="xsd:string"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Date" sdoJava:instanceClass="java.util.Date">
+ <xsd:restriction base="xsd:dateTime"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="DateTime" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:dateTime"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Day" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:gDay"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Decimal" sdoJava:instanceClass="java.math.BigDecimal">
+ <xsd:restriction base="xsd:decimal"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Double" sdoJava:instanceClass="double">
+ <xsd:restriction base="xsd:double"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Duration" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:duration"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Float" sdoJava:instanceClass="float">
+ <xsd:restriction base="xsd:float"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Int" sdoJava:instanceClass="int">
+ <xsd:restriction base="xsd:int"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Integer" sdoJava:instanceClass="java.math.BigInteger">
+ <xsd:restriction base="xsd:integer"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Long" sdoJava:instanceClass="long">
+ <xsd:restriction base="xsd:long"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Month" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:gMonth"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="MonthDay" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:gMonthDay"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Object" sdoJava:instanceClass="java.lang.Object">
+ <!-- Only the schema for schemas is allowed to restrict anySimpleType.
+ <xsd:restriction base="xsd:anySimpleType"/>
+ The equivalent declaration is a union of the predefined XSD data types.
+ -->
+ <xsd:union memberTypes="xsd:anyURI xsd:base64Binary xsd:boolean xsd:byte
+ xsd:date xsd:dateTime xsd:decimal xsd:double xsd:duration xsd:ENTITIES xsd:ENTITY xsd:float
+ xsd:gDay xsd:gMonth xsd:gMonthDay xsd:gYear xsd:gYearMonth xsd:hexBinary xsd:ID xsd:IDREF xsd:IDREFS
+ xsd:int xsd:integer xsd:language xsd:long xsd:Name xsd:NCName xsd:negativeInteger
+ xsd:NMTOKEN xsd:NMTOKENS xsd:nonNegativeInteger xsd:nonPositiveInteger
+ xsd:normalizedString xsd:NOTATION xsd:positiveInteger xsd:QName xsd:short xsd:string
+ xsd:time xsd:token xsd:unsignedByte xsd:unsignedInt xsd:unsignedLong xsd:unsignedShort"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Short" sdoJava:instanceClass="short">
+ <xsd:restriction base="xsd:short"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="String" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:string"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Strings" sdoJava:instanceClass="java.util.List">
+ <xsd:restriction base="xsd:string"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Time" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:time"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="Year" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:gYear"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="YearMonth" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:gYearMonth"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="YearMonthDay" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:date"/>
+</xsd:simpleType>
+
+<xsd:simpleType name="URI" sdoJava:instanceClass="java.lang.String">
+ <xsd:restriction base="xsd:anyURI"/>
+</xsd:simpleType>
+
+</xsd:schema>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org