]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
Adding JAX-B schema for CollectionObject entity
authorRichard Millet <richard.millet@berkeley.edu>
Wed, 8 Apr 2009 16:38:46 +0000 (16:38 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Wed, 8 Apr 2009 16:38:46 +0000 (16:38 +0000)
HelloWorld/HelloWorldJaxb/src/main/resources/hello.xsd

index 64a6b43b4c3a5740901fe4be8a85fd07bbaa710e..51e8e3028dcb76fd1d296a6d03cc52833b39be45 100644 (file)
 
         </xs:complexType>
     </xs:element>
+    
+    <!-- collection-object  -->
+    <xs:element name="collection-object">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="csid" type="xs:string" minOccurs="1" />
+                <xs:element name="identifier" type="xs:string" minOccurs="1" />
+                <xs:element name="description" type="xs:string" minOccurs="1" />
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    
+    <!-- collection objects as in nuxeo repository -->
+    <xs:element name="collection-object-list">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="collection-object-list-item" maxOccurs="unbounded">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="identifier" type="xs:string"
+                                minOccurs="1" />
+                            <!-- uri to retrive person details -->
+                            <xs:element name="uri" type="xs:anyURI"
+                                minOccurs="1" />
+                            <xs:element name="csid" type="xs:string"
+                                minOccurs="1" />
+                        </xs:sequence>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    
 </xs:schema>