KickJava   Java API By Example, From Geeks To Geeks.

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


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 <code>xs:simpleRestrictionModel</code>, following
23  * this specification:
24  * <pre>
25  * &lt;xs:group name="simpleRestrictionModel"&gt;
26  * &lt;xs:sequence&gt;
27  * &lt;xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/&gt;
28  * &lt;xs:group ref="xs:facets" minOccurs="0" maxOccurs="unbounded"/&gt;
29  * &lt;/xs:sequence&gt;
30  * &lt;/xs:group&gt;
31  *
32  * &lt;xs:group name="facets"&gt;
33  * &lt;xs:annotation&gt;
34  * &lt;xs:documentation&gt;
35  * We should use a substitution group for facets, but
36  * that's ruled out because it would allow users to
37  * add their own, which we're not ready for yet.
38  * &lt;/xs:documentation&gt;
39  * &lt;/xs:annotation&gt;
40  * &lt;xs:choice&gt;
41  * &lt;xs:element ref="xs:minExclusive"/&gt;
42  * &lt;xs:element ref="xs:minInclusive"/&gt;
43  * &lt;xs:element ref="xs:maxExclusive"/&gt;
44  * &lt;xs:element ref="xs:maxInclusive"/&gt;
45  * &lt;xs:element ref="xs:totalDigits"/&gt;
46  * &lt;xs:element ref="xs:fractionDigits"/&gt;
47  * &lt;xs:element ref="xs:length"/&gt;
48  * &lt;xs:element ref="xs:minLength"/&gt;
49  * &lt;xs:element ref="xs:maxLength"/&gt;
50  * &lt;xs:element ref="xs:enumeration"/&gt;
51  * &lt;xs:element ref="xs:whiteSpace"/&gt;
52  * &lt;xs:element ref="xs:pattern"/&gt;
53  * &lt;/xs:choice&gt;
54  * &lt;/xs:group&gt;
55  * </pre></p>
56  *
57  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
58  */

59 public interface XsGSimpleRestrictionModel {
60   public XsTLocalSimpleType createSimpleType() throws SAXException JavaDoc;
61   public XsTLocalSimpleType getSimpleType();
62
63   public XsEMinExclusive createMinExclusive() throws SAXException JavaDoc;
64   public XsEMinExclusive getMinExclusive();
65
66   public XsEMinInclusive createMinInclusive() throws SAXException JavaDoc;
67   public XsEMinInclusive getMinInclusive();
68
69   public XsEMaxExclusive createMaxExclusive() throws SAXException JavaDoc;
70   public XsEMaxExclusive getMaxExclusive();
71
72   public XsEMaxInclusive createMaxInclusive() throws SAXException JavaDoc;
73   public XsEMaxInclusive getMaxInclusive();
74
75   public XsETotalDigits createTotalDigits() throws SAXException JavaDoc;
76   public XsETotalDigits getTotalDigits();
77
78   public XsEFractionDigits createFractionDigits() throws SAXException JavaDoc;
79   public XsEFractionDigits getFractionDigits();
80
81   public XsELength createLength() throws SAXException JavaDoc;
82   public XsELength getLength();
83
84   public XsEMinLength createMinLength() throws SAXException JavaDoc;
85   public XsEMinLength getMinLength();
86
87   public XsEMaxLength createMaxLength() throws SAXException JavaDoc;
88   public XsEMaxLength getMaxLength();
89
90   public XsEWhiteSpace createWhiteSpace() throws SAXException JavaDoc;
91   public XsEWhiteSpace getWhiteSpace();
92
93   public XsEPattern createPattern() throws SAXException JavaDoc;
94   public XsEPattern[] getPatterns();
95
96   public XsEEnumeration createEnumeration() throws SAXException JavaDoc;
97   public XsEEnumeration[] getEnumerations();
98
99   /** <p>Returns whether any facet has been defined.</p>
100    */

101   public boolean hasFacets();
102
103   /** <p>Returns an array of all facets.</p>
104    */

105   public XsTFacetBase[] getFacets();
106 }
107
Popular Tags