KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.xml.sax.SAXException JavaDoc;
20
21
22 /** <p>Interface of the following specification for
23  * <code>xs:simpleType</code>:
24  * <pre>
25  * &lt;xs:complexType name="simpleType" abstract="true"&gt;
26  * &lt;xs:complexContent&gt;
27  * &lt;xs:extension base="xs:annotated"&gt;
28  * &lt;xs:group ref="xs:simpleDerivation"/&gt;
29  * &lt;xs:attribute name="final" type="xs:simpleDerivationSet"/&gt;
30  * &lt;xs:attribute name="name" type="xs:NCName"&gt;
31  * &lt;xs:annotation&gt;
32  * &lt;xs:documentation&gt;
33  * Can be restricted to required or forbidden
34  * &lt;/xs:documentation&gt;
35  * &lt;/xs:annotation&gt;
36  * &lt;/xs:attribute&gt;
37  * &lt;/xs:extension&gt;
38  * &lt;/xs:complexContent&gt;
39  * &lt;/xs:complexType&gt;
40  *
41  * &lt;xs:group name="simpleDerivation"&gt;
42  * &lt;xs:choice&gt;
43  * &lt;xs:element ref="xs:restriction"/&gt;
44  * &lt;xs:element ref="xs:list"/&gt;
45  * &lt;xs:element ref="xs:union"/&gt;
46  * &lt;/xs:choice&gt;
47  * &lt;/xs:group&gt;
48  * </pre></p>
49  *
50  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
51  */

52 public interface XsTSimpleType extends XsTAnnotated {
53   public XsERestriction createRestriction() throws SAXException JavaDoc;
54   public XsERestriction getRestriction();
55
56   public XsEList createList() throws SAXException JavaDoc;
57   public XsEList getList();
58
59   public XsEUnion createUnion() throws SAXException JavaDoc;
60   public XsEUnion getUnion();
61
62   public void setFinal(XsSimpleDerivationSet pSet) throws SAXException JavaDoc;
63   public XsSimpleDerivationSet getFinal();
64
65   public void setName(XsNCName pName) throws SAXException JavaDoc;
66   public XsNCName getName();
67 }
68
Popular Tags