summaryrefslogtreecommitdiffstats
path: root/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType
diff options
context:
space:
mode:
Diffstat (limited to 'sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType')
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd29
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd28
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived.xsd28
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd29
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd40
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd49
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd26
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd26
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd26
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/list.xsd24
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd26
-rw-r--r--sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/union.xsd24
12 files changed, 355 insertions, 0 deletions
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd
new file mode 100644
index 0000000000..3da238c980
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd
@@ -0,0 +1,29 @@
+<?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" targetNamespace="http://www.example.com/simpleType/annotation/">
+ <xs:simpleType name="simpleTypeAnnotated">
+ <xs:annotation>
+ <xs:documentation>This is a test case for simpleType containing an annotation</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:length value="50" />
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd
new file mode 100644
index 0000000000..7cd7bf8413
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd
@@ -0,0 +1,28 @@
+<?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" targetNamespace="http://www.example.com/simpleType/anonymous">
+ <xs:element name="simpleTypeAnon">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:length value="50" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived.xsd
new file mode 100644
index 0000000000..7bf074f700
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived.xsd
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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" xmlns:ns1="http://www.example.com/simpleType/derived" targetNamespace="http://www.example.com/simpleType/derived">
+ <xs:simpleType name="baseType">
+ <xs:restriction base="xs:integer">
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="derivedType">
+ <xs:restriction base="ns1:baseType"/>
+ </xs:simpleType>
+</xs:schema>
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd
new file mode 100644
index 0000000000..41efe54e70
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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" xmlns:ns1="http://www.example.com/simpleType/derived2" targetNamespace="http://www.example.com/simpleType/derived2">
+ <xs:simpleType name="baseType" final="list">
+ <xs:restriction base="xs:integer">
+
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="derivedType">
+ <xs:restriction base="ns1:baseType"/>
+ </xs:simpleType>
+</xs:schema>
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd
new file mode 100644
index 0000000000..101115e8fd
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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" xmlns:ns1="http://www.example.com/simpleType/derivedUnion" targetNamespace="http://www.example.com/simpleType/derivedUnion">
+ <xs:attribute name="fontsize">
+ <xs:simpleType>
+ <xs:union memberTypes="ns1:fontbynumber ns1:fontbystringname" />
+ </xs:simpleType>
+</xs:attribute>
+
+<xs:simpleType name="fontbynumber">
+ <xs:restriction base="xs:positiveInteger">
+ <xs:maxInclusive value="72"/>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="fontbystringname">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="small"/>
+ <xs:enumeration value="medium"/>
+ <xs:enumeration value="large"/>
+ </xs:restriction>
+</xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd
new file mode 100644
index 0000000000..cadffc1a78
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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" xmlns:ns1="http://www.example.com/simpleType/enumeration" targetNamespace="http://www.example.com/simpleType/enumeration">
+ <xs:element name="thing" type="ns1:thing"/>
+ <xs:complexType name="thing">
+ <xs:sequence>
+ <xs:element name="sizeofthing">
+ <xs:simpleType>
+ <xs:restriction base="ns1:size"/>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="colorofthing">
+ <xs:simpleType>
+ <xs:restriction base="ns1:color"/>
+ </xs:simpleType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:simpleType name="color" id="clr">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="red"/>
+ <xs:enumeration value="green"/>
+ <xs:enumeration value="blue"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="size">
+ <xs:restriction base="xs:integer">
+ <xs:minInclusive value="1" fixed="true"/>
+ <xs:maxInclusive value="10" fixed="true"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd
new file mode 100644
index 0000000000..7575a3c6c9
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd
@@ -0,0 +1,26 @@
+<?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" targetNamespace="http://www.example.com/simpleType/finalList">
+ <xs:simpleType name="simpleTypeFinalList" final="list">
+ <xs:restriction base="xs:string">
+ <xs:length value="50" />
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd
new file mode 100644
index 0000000000..ca35b1c488
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd
@@ -0,0 +1,26 @@
+<?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" targetNamespace="http://www.example.com/simpleType/finalRestriction">
+ <xs:simpleType name="simpleTypeFinalRestriction" final="restriction">
+ <xs:restriction base="xs:string">
+ <xs:length value="50" />
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd
new file mode 100644
index 0000000000..ce28a8d50d
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd
@@ -0,0 +1,26 @@
+<?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" targetNamespace="http://www.example.com/simpleType/finalUnion">
+ <xs:simpleType name="simpleTypeFinalUnion" final="union">
+ <xs:restriction base="xs:string">
+ <xs:length value="50" />
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/list.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/list.xsd
new file mode 100644
index 0000000000..aeaf934ad4
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/list.xsd
@@ -0,0 +1,24 @@
+<?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" targetNamespace="http://www.example.com/simpleType/list">
+ <xs:simpleType name="simpleTypeList">
+ <xs:list itemType="xs:string" />
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd
new file mode 100644
index 0000000000..45670e9084
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd
@@ -0,0 +1,26 @@
+<?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" targetNamespace="http://www.example.com/simpleType/restriction">
+ <xs:simpleType name="simpleTypeRestriction">
+ <xs:restriction base="xs:string">
+ <xs:length value="50" />
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file
diff --git a/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/union.xsd b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/union.xsd
new file mode 100644
index 0000000000..394b802c00
--- /dev/null
+++ b/sdo-java/trunk-cts/sdo2.1/src/main/resources/simpleType/union.xsd
@@ -0,0 +1,24 @@
+<?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" targetNamespace="http://www.example.com/simpleType/union">
+ <xs:simpleType name="simpleTypeUnion">
+ <xs:union memberTypes="xs:int xs:string" />
+ </xs:simpleType>
+</xs:schema> \ No newline at end of file