summaryrefslogtreecommitdiffstats
path: root/sdo-java/trunk-cts/sdo2.1/src/main/resources/api_test.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'sdo-java/trunk-cts/sdo2.1/src/main/resources/api_test.xsd')
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/api_test.xsd89
1 files changed, 89 insertions, 0 deletions
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/api_test.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/api_test.xsd
new file mode 100644
index 0000000000..c740060161
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/api_test.xsd
@@ -0,0 +1,89 @@
+<?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.
+ -->
+<xsd:schema xmlns:sdo="commonj.sdo" xmlns:sdoXML="commonj.sdo/xml" xmlns:api="http://www.example.com/api_test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/api_test">
+ <!-- <xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/> -->
+
+ <xsd:element name="apiTestElem" type="api:APITest"/>
+
+ <xsd:complexType name="APITest">
+ <xsd:sequence>
+ <xsd:element name="stringVal" type="xsd:string"/>
+ <xsd:element name="booleanVal" type="xsd:boolean"/>
+ <xsd:element name="booleanVal2" type="xsd:boolean"/>
+ <xsd:element name="byteVal" type="xsd:byte"/>
+ <xsd:element name="stringVal2" type="xsd:string"/>
+ <xsd:element name="decimalVal" type="xsd:decimal"/>
+ <xsd:element name="decimalVal2" sdo:aliasName="dec2" type="xsd:decimal"/>
+ <xsd:element name="intVal" type="xsd:int"/>
+ <xsd:element name="floatVal" type="xsd:float"/>
+ <xsd:element name="doubleVal" type="xsd:double"/>
+ <xsd:element name="dateVal" type="xsd:dateTime"/>
+ <xsd:element name="shortVal" type="xsd:short"/>
+ <xsd:element name="longVal" type="xsd:long"/>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="containMany" type="api:APITest"/>
+ <xsd:element name="bytesVal" type="xsd:hexBinary"/>
+ <xsd:element name="integerVal" type="xsd:integer"/>
+ <xsd:element name="charVal" type="api:char"/>
+ <xsd:element name="readOnlyVal" type="xsd:string" sdoXML:readOnly="true"/>
+ <xsd:element name="sequencedElem" type="api:Sequenced"/>
+ <xsd:element name="extendedElem" type="api:Extended"/>
+ <xsd:element name="openElem" type="api:Open"/>
+ <xsd:element name="contain" type="api:APITest"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Sequenced" mixed="true">
+ <xsd:sequence>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="Numbers" type="xsd:int"/>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="Letters" type="xsd:string"/>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="containMany" type="api:Sequenced"/>
+ <xsd:element name="contain" type="api:Sequenced"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Open">
+ <xsd:sequence>
+ <xsd:element name="defined" type="xsd:string"/>
+ <xsd:any maxOccurs="unbounded" namespace="##any"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:simpleType name="char">
+ <xsd:restriction base="xsd:string">
+ <xsd:length value="1"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:complexType abstract="true" name="Abstract">
+ <xsd:sequence>
+ <xsd:element name="firstName" type="xsd:string"/>
+ <xsd:element name="lastName" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Extended" sdo:aliasName="Ext2">
+ <xsd:complexContent>
+ <xsd:extension base="api:Abstract">
+ <xsd:sequence>
+ <xsd:element name="nickName" type="xsd:string"/>
+ <xsd:element name="middleName" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+</xsd:schema>