KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > xml > XsGAllModel


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.xs.xml;
18
19 /** <p>Interface of <code>xs:allModel</code>, as specified by
20  * the following:
21  * <pre>
22  * &lt;xs:group name="allModel"&gt;
23  * &lt;xs:sequence&gt;
24  * &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
25  * &lt;xs:element name="element" minOccurs="0" maxOccurs="unbounded"&gt;
26  * &lt;xs:complexType&gt;
27  * &lt;xs:annotation&gt;
28  * &lt;xs:documentation&gt;restricted max/min&lt;/xs:documentation&gt;
29  * &lt;/xs:annotation&gt;
30  * &lt;xs:complexContent&gt;
31  * &lt;xs:restriction base="xs:localElement"&gt;
32  * &lt;xs:sequence&gt;
33  * &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
34  * &lt;xs:choice minOccurs="0"&gt;
35  * &lt;xs:element name="simpleType" type="xs:localSimpleType"/&gt;
36  * &lt;xs:element name="complexType" type="xs:localComplexType"/&gt;
37  * &lt;/xs:choice&gt;
38  * &lt;xs:group ref="xs:identityConstraint" minOccurs="0"
39  * maxOccurs="unbounded"/&gt;
40  * &lt;/xs:sequence&gt;
41  * &lt;xs:attribute name="minOccurs" use="optional" default="1"&gt;
42  * &lt;xs:simpleType&gt;
43  * &lt;xs:restriction base="xs:nonNegativeInteger"&gt;
44  * &lt;xs:enumeration value="0"/&gt;
45  * &lt;xs:enumeration value="1"/&gt;
46  * &lt;/xs:restriction&gt;
47  * &lt;/xs:simpleType&gt;
48  * &lt;/xs:attribute&gt;
49  * &lt;xs:attribute name="maxOccurs" use="optional" default="1"&gt;
50  * &lt;xs:simpleType&gt;
51  * &lt;xs:restriction base="xs:allNNI"&gt;
52  * &lt;xs:enumeration value="0"/&gt;
53  * &lt;xs:enumeration value="1"/&gt;
54  * &lt;/xs:restriction&gt;
55  * &lt;/xs:simpleType&gt;
56  * &lt;/xs:attribute&gt;
57  * &lt;/xs:restriction&gt;
58  * &lt;/xs:complexContent&gt;
59  * &lt;/xs:complexType&gt;
60  * &lt;/xs:element&gt;
61  * &lt;/xs:sequence&gt;
62  * &lt;/xs:group&gt;
63  * </pre></p>
64  * <p><em>Implementation note: The above restriction of a {@link XsTLocalElement}
65  * is interpreted as a usual local element, except that the <code>minOccurs</code>
66  * and <code>maxOccurs</code> attributes must be 0 or 1.</p>
67  *
68  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
69  */

70 public interface XsGAllModel {
71   public XsEAnnotation createAnnotation();
72   public XsEAnnotation getAnnotation();
73   public XsTLocalElement createElement();
74   public XsTLocalElement[] getElements();
75 }
76
Popular Tags