diff options
Diffstat (limited to 'sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources')
10 files changed, 393 insertions, 0 deletions
diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/company.xsd b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/company.xsd new file mode 100644 index 0000000000..c699f89e31 --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/company.xsd @@ -0,0 +1,45 @@ +<?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. + --> + + <xsd:schema xmlns:company="company.xsd" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="company.xsd"> + <xsd:element name="company" type="company:CompanyType"/> + <xsd:complexType name="CompanyType"> + <xsd:sequence> + <xsd:element name="departments" type="company:DepartmentType" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="employeeOfTheMonth" type="xsd:string"/> + </xsd:complexType> + <xsd:complexType name="DepartmentType"> + <xsd:sequence> + <xsd:element name="employees" type="company:EmployeeType" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="location" type="xsd:string"/> + <xsd:attribute name="number" type="xsd:int"/> + </xsd:complexType> + <xsd:complexType name="EmployeeType"> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="SN" type="xsd:ID"/> + <xsd:attribute name="manager" type="xsd:boolean"/> + </xsd:complexType> + </xsd:schema> diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyCompleteDataGraph.xml b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyCompleteDataGraph.xml new file mode 100644 index 0000000000..f636f2131e --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyCompleteDataGraph.xml @@ -0,0 +1,69 @@ +<?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. + --> +<sdo:datagraph xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +xmlns:xsd="http://www.w3.org/2001/XMLSchema" +xmlns:company="company.xsd" +xmlns:sdo="commonj.sdo"> + + <xsd> + <xsd:schema targetNamespace="company.xsd"> + <xsd:element name="company" type="company:CompanyType" minOccurs="0" maxOccurs="unbounded"/> + <xsd:complexType name="CompanyType"> + <xsd:sequence> + <xsd:element name="departments" type="company:DepartmentType" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="employeeOfTheMonth" type="xsd:string"/> + </xsd:complexType> + <xsd:complexType name="DepartmentType"> + <xsd:sequence> + <xsd:element name="employees" type="company:EmployeeType" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="location" type="xsd:string"/> + <xsd:attribute name="number" type="xsd:int"/> + </xsd:complexType> + <xsd:complexType name="EmployeeType"> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="SN" type="xsd:ID"/> + <xsd:attribute name="manager" type="xsd:boolean"/> + </xsd:complexType> + </xsd:schema> + </xsd> + + <changeSummary create="E0004" delete="E0002"> + <company sdo:ref="#/company" name="ACME" + employeeOfTheMonth="E0002"/> + <departments sdo:ref="#/company/departments[1]"> + <employees sdo:ref="E0001"/> + <employees name="Mary Smith" SN="E0002" manager="true"/> + <employees sdo:ref="E0003"/> + </departments> + </changeSummary> + + <company:company name="MegaCorp" employeeOfTheMonth="E0004"> + <departments name="Advanced Technologies" location="NY" number="123"> + <employees name="John Jones" SN="E0001"/> + <employees name="Jane Doe" SN="E0003"/> + <employees name="Al Smith" SN="E0004" manager="true"/> + </departments> + </company:company> + +</sdo:datagraph> diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyDataGraph.xml b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyDataGraph.xml new file mode 100644 index 0000000000..7114b98fdf --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyDataGraph.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="ASCII"?> +<!-- + * 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. + --> + +<sdo:datagraph xmlns:company="company.xsd" + xmlns:sdo="commonj.sdo"> + <company:company name="ACME" employeeOfTheMonth="E0002"> + <departments name="Advanced Technologies" location="NY" number="123"> + <employees name="John Jones" SN="E0001"/> + <employees name="Mary Smith" SN="E0002" manager="true"/> + <employees name="Jane Doe" SN="E0003"/> + </departments> + </company:company> +</sdo:datagraph> + diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyDataGraphGenerated.xml b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyDataGraphGenerated.xml new file mode 100644 index 0000000000..a99e71bbaa --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyDataGraphGenerated.xml @@ -0,0 +1,30 @@ +<?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. + --> + +<sdo:datagraph xmlns:company="company.xsd" xmlns:sdo="commonj.sdo"> + <company:company employeeOfTheMonth="E0002" + name="ACME"> + <departments location="NY" name="Advanced Technologies" number="123"> + <employees name="John Jones" SN="E0001"/> + <employees name="Jane Doe" SN="E0003"/> + <employees manager="true" name="Al Smith" SN="E0004"/> + </departments> + </company:company> +</sdo:datagraph> diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyGenerated.xml b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyGenerated.xml new file mode 100644 index 0000000000..0108e67a4b --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/companyGenerated.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ASCII"?> +<!-- + * 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. + --> +<company:company xmlns:company="company.xsd" employeeOfTheMonth="E0001" + name="ACME"> + <departments location="NY" name="Advanced Technologies" number="123"> + <employees name="John Jones" SN="E0001"/> + <employees name="Jane Doe" SN="E0003"/> + <employees manager="true" name="A Varone" SN="E0004"/> + </departments> +</company:company>
\ No newline at end of file diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/doc-files/cmdPrompt.GIF b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/doc-files/cmdPrompt.GIF Binary files differnew file mode 100644 index 0000000000..ad2fbbf46f --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/doc-files/cmdPrompt.GIF diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/letter.xml b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/letter.xml new file mode 100644 index 0000000000..85e0bd42b8 --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/letter.xml @@ -0,0 +1,21 @@ +<?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. + --> + +<letter:letters xmlns:letter="letter.xsd"><date>August 1, 2003</date>Mutual of Omaha Wild Kingdom, USA Dear<firstName>Casy</firstName><lastName>Crocodile</lastName>Please buy more shark repellent. Your premium is past due.</letter:letters>
\ No newline at end of file diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/letter.xsd b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/letter.xsd new file mode 100644 index 0000000000..e6e077ff75 --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/letter.xsd @@ -0,0 +1,32 @@ +<?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. + --> + +<xsd:schema xmlns:letter="letter.xsd" targetNamespace="letter.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <xsd:element name="letters" type="letter:FormLetter"/> + <xsd:complexType name="FormLetter" mixed="true"> + <xsd:sequence> + <xsd:element name="date" minOccurs="0" type="xsd:string"/> + <xsd:element name="firstName" minOccurs="0" type="xsd:string"/> + <xsd:element name="lastName" minOccurs="0" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> +</xsd:schema> + diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/po.xml b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/po.xml new file mode 100644 index 0000000000..e44cb07720 --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/po.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="ASCII"?> +<!-- + * 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. + --> + +<PO:purchaseOrder xmlns:PO="http://www.example.com/PO" orderDate="1999-10-20"> + <shipTo country="US"> + <name>Robbie Minshall</name> + <street>123 Maple Street</street> + <city>Mill Valley</city> + <state>CA</state> + <zip>90952</zip> + </shipTo> + <billTo country="US"> + <name>Robert Smith</name> + <street>8 Oak Avenue</street> + <city>Mill Valley</city> + <state>PA</state> + <zip>95819</zip> + </billTo> + <PO:comment>Hurry, my lawn is going wild!</PO:comment> + <items> + <item partNum="872-AA"> + <productName>Lawnmower</productName> + <price>148.95</price> + <quantity>1</quantity> + <PO:comment>Confirm this is electric</PO:comment> + </item> + <item partNum="926-AA"> + <productName>Baby Monitor</productName> + <price>39.98</price> + <quantity>1</quantity> + <shipDate>1999-05-21</shipDate> + </item> + <item partNum="876"> + <productName>GrassSeed</productName> + <price>50</price> + <quantity>100</quantity> + <PO:comment>For Shade</PO:comment> + </item> + </items> +</PO:purchaseOrder>
\ No newline at end of file diff --git a/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/po.xsd b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/po.xsd new file mode 100644 index 0000000000..8929775d49 --- /dev/null +++ b/sdo-java/tags/1.0-incubating-beta1/sdo/sample/src/main/resources/po.xsd @@ -0,0 +1,81 @@ +<?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. + --> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns="http://www.example.com/PO" targetNamespace="http://www.example.com/PO"> + + <xsd:element name="purchaseOrder" type="PurchaseOrderType"/> + <xsd:element name="comment" type="xsd:string"/> + + <xsd:complexType name="PurchaseOrderType"> + <xsd:sequence> + <xsd:element name="shipTo" type="USAddress"/> + <xsd:element name="billTo" type="USAddress"/> + <xsd:element ref="comment" minOccurs="0"/> + <xsd:element name="items" type="Items"/> + + </xsd:sequence> + <xsd:attribute name="orderDate" type="xsd:date"/> + </xsd:complexType> + + <xsd:complexType name="USAddress"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + + <xsd:element name="street" type="xsd:string"/> + <xsd:element name="city" type="xsd:string"/> + <xsd:element name="state" type="xsd:string"/> + <xsd:element name="zip" type="xsd:decimal"/> + </xsd:sequence> + <xsd:attribute name="country" type="xsd:NMTOKEN" fixed="US"/> + + </xsd:complexType> + + <xsd:complexType name="Items"> + <xsd:sequence> + <xsd:element name="item" minOccurs="0" maxOccurs="unbounded"> + <xsd:complexType> + <xsd:sequence> + + <xsd:element name="productName" type="xsd:string"/> + <xsd:element name="price" type="xsd:decimal"/> + <xsd:element name="quantity"> + <xsd:simpleType> + <xsd:restriction base="xsd:positiveInteger"> + <xsd:maxExclusive value="100"/> + </xsd:restriction> + + </xsd:simpleType> + </xsd:element> + <xsd:element ref="comment" minOccurs="0"/> + <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/> + </xsd:sequence> + + <xsd:attribute name="partNum" type="SKU" use="required"/> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + <xsd:simpleType name="SKU"> + + <xsd:restriction base="xsd:string"> + <xsd:pattern value="\d{3}-[A-Z]{2}"/> + </xsd:restriction> + </xsd:simpleType> + </xsd:schema>
\ No newline at end of file |