KickJava   Java API By Example, From Geeks To Geeks.

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


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>Implementation of <code>xs:restriction</code>, following
23  * this specification:
24  * <pre>
25  * &lt;xs:element name="restriction" id="restriction"&gt;
26  * &lt;xs:complexType&gt;
27  * &lt;xs:annotation&gt;
28  * &lt;xs:documentation
29  * source="http://www.w3.org/TR/xmlschema-2/#element-restriction"&gt;
30  * base attribute and simpleType child are mutually
31  * exclusive, but one or other is required
32  * &lt;/xs:documentation&gt;
33  * &lt;/xs:annotation&gt;
34  * &lt;xs:complexContent&gt;
35  * &lt;xs:extension base="xs:annotated"&gt;
36  * &lt;xs:group ref="xs:simpleRestrictionModel"/&gt;
37  * &lt;xs:attribute name="base" type="xs:QName" use="optional"/&gt;
38  * &lt;/xs:extension&gt;
39  * &lt;/xs:complexContent&gt;
40  * &lt;/xs:complexType&gt;
41  * &lt;/xs:element&gt;
42  *
43  * &lt;xs:group name="simpleRestrictionModel"&gt;
44  * &lt;xs:sequence&gt;
45  * &lt;xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/&gt;
46  * &lt;xs:group ref="xs:facets" minOccurs="0" maxOccurs="unbounded"/&gt;
47  * &lt;/xs:sequence&gt;
48  * &lt;/xs:group&gt;
49  *
50  * &lt;xs:group name="facets"&gt;
51  * &lt;xs:annotation&gt;
52  * &lt;xs:documentation&gt;
53  * We should use a substitution group for facets, but
54  * that's ruled out because it would allow users to
55  * add their own, which we're not ready for yet.
56  * &lt;/xs:documentation&gt;
57  * &lt;/xs:annotation&gt;
58  * &lt;xs:choice&gt;
59  * &lt;xs:element ref="xs:minExclusive"/&gt;
60  * &lt;xs:element ref="xs:minInclusive"/&gt;
61  * &lt;xs:element ref="xs:maxExclusive"/&gt;
62  * &lt;xs:element ref="xs:maxInclusive"/&gt;
63  * &lt;xs:element ref="xs:totalDigits"/&gt;
64  * &lt;xs:element ref="xs:fractionDigits"/&gt;
65  * &lt;xs:element ref="xs:length"/&gt;
66  * &lt;xs:element ref="xs:minLength"/&gt;
67  * &lt;xs:element ref="xs:maxLength"/&gt;
68  * &lt;xs:element ref="xs:enumeration"/&gt;
69  * &lt;xs:element ref="xs:whiteSpace"/&gt;
70  * &lt;xs:element ref="xs:pattern"/&gt;
71  * &lt;/xs:choice&gt;
72  * &lt;/xs:group&gt;
73  * </pre></p>
74  *
75  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
76  */

77 public interface XsERestriction extends XsTAnnotated, XsGSimpleRestrictionModel {
78   public void setBase(XsQName pBase);
79
80   public XsQName getBase();
81
82   public XsTLocalSimpleType createSimpleType() throws SAXException JavaDoc;
83
84   public XsTLocalSimpleType getSimpleType();
85 }
86
Popular Tags