KickJava   Java API By Example, From Geeks To Geeks.

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


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 a named top-level group, with the following
20  * specification:
21  * <pre>
22  * &lt;xs:complexType name="namedGroup"&gt;
23  * &lt;xs:annotation&gt;
24  * &lt;xs:documentation&gt;
25  * Should derive this from realGroup, but too complicated for now
26  * &lt;/xs:documentation&gt;
27  * &lt;/xs:annotation&gt;
28  * &lt;xs:sequence&gt;
29  * &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
30  * &lt;xs:choice minOccurs="1" maxOccurs="1"&gt;
31  * &lt;xs:element name="all"&gt;
32  * &lt;xs:complexType&gt;
33  * &lt;xs:complexContent&gt;
34  * &lt;xs:restriction base="xs:all"&gt;
35  * &lt;xs:group ref="xs:allModel"/&gt;
36  * &lt;xs:attribute name="minOccurs" use="prohibited"/&gt;
37  * &lt;xs:attribute name="maxOccurs" use="prohibited"/&gt;
38  * &lt;/xs:restriction&gt;
39  * &lt;/xs:complexContent&gt;
40  * &lt;/xs:complexType&gt;
41  * &lt;/xs:element&gt;
42  * &lt;xs:element name="choice" type="xs:simpleExplicitGroup"/&gt;
43  * &lt;xs:element name="sequence" type="xs:simpleExplicitGroup"/&gt;
44  * &lt;/xs:choice&gt;
45  * &lt;/xs:sequence&gt;
46  * &lt;xs:attribute name="name" use="required" type="xs:NCName"/&gt;
47  * &lt;xs:attribute name="ref" use="prohibited"/&gt;
48  * &lt;xs:attribute name="minOccurs" use="prohibited"/&gt;
49  * &lt;xs:attribute name="maxOccurs" use="prohibited"/&gt;
50  * &lt;/xs:complexType&gt;
51  * &lt;/pre>&lt;/p>
52  *
53  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
54  */

55 public interface XsTNamedGroup extends XsTAnnotated, XsRedefinable {
56   public void setName(XsNCName pName);
57   public XsNCName getName();
58   public XsGAllModel createAll();
59   public XsGAllModel getAll();
60   public XsTSimpleExplicitGroup createSequence();
61   public XsTSimpleExplicitGroup getSequence();
62   public XsTSimpleExplicitGroup createChoice();
63   public XsTSimpleExplicitGroup getChoice();
64 }
65
Popular Tags