KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > xml > impl > XsTComplexRestrictionTypeImpl


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.impl;
18
19 import org.apache.ws.jaxme.xs.parser.impl.LocSAXException;
20 import org.apache.ws.jaxme.xs.xml.*;
21 import org.xml.sax.SAXException JavaDoc;
22
23
24 /** <p>Implementation of <code>xs:complexRestrictionType</code>,
25  * as specified by the following:
26  * <pre>
27  * &lt;xs:complexType name="complexRestrictionType"&gt;
28  * &lt;xs:complexContent&gt;
29  * &lt;xs:restriction base="xs:restrictionType"&gt;
30  * &lt;xs:sequence&gt;
31  * &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
32  * &lt;xs:group ref="xs:typeDefParticle" minOccurs="0"/&gt;
33  * &lt;xs:group ref="xs:attrDecls"/&gt;
34  * &lt;/xs:sequence&gt;
35  * &lt;/xs:restriction&gt;
36  * &lt;/xs:complexContent&gt;
37  * &lt;/xs:complexType&gt;
38  * </pre></p>
39  *
40  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
41  */

42 public class XsTComplexRestrictionTypeImpl extends XsTRestrictionTypeImpl
43     implements XsTComplexRestrictionType {
44   protected XsTComplexRestrictionTypeImpl(XsObject pParent) {
45     super(pParent);
46   }
47
48   public XsTLocalSimpleType createSimpleType() throws SAXException {
49     throw new LocSAXException("A restriction with complex content doesn't support the 'simpleType' child element.", getLocator());
50   }
51
52   public XsEMinExclusive createMinExclusive() throws SAXException {
53     throw new LocSAXException("A restriction with complex content doesn't support the 'minExclusive' child element.", getLocator());
54   }
55
56   public XsEMinInclusive createMinInclusive() throws SAXException {
57     throw new LocSAXException("A restriction with complex content doesn't support the 'minInclusive' child element.", getLocator());
58   }
59
60   public XsEMaxExclusive createMaxExclusive() throws SAXException {
61     throw new LocSAXException("A restriction with complex content doesn't support the 'maxExclusive' child element.", getLocator());
62   }
63
64   public XsEMaxInclusive createMaxInclusive() throws SAXException {
65     throw new LocSAXException("A restriction with complex content doesn't support the 'maxInclusive' child element.", getLocator());
66   }
67
68   public XsETotalDigits createTotalDigits() throws SAXException {
69     throw new LocSAXException("A restriction with complex content doesn't support the 'totalDigits' child element.", getLocator());
70   }
71
72   public XsEFractionDigits createFractionDigits() throws SAXException {
73     throw new LocSAXException("A restriction with complex content doesn't support the 'fractionDigits' child element.", getLocator());
74   }
75
76   public XsELength createLength() throws SAXException {
77     throw new LocSAXException("A restriction with complex content doesn't support the 'length' child element.", getLocator());
78   }
79
80   public XsEMinLength createMinLength() throws SAXException {
81     throw new LocSAXException("A restriction with complex content doesn't support the 'minLength' child element.", getLocator());
82   }
83
84   public XsEMaxLength createMaxLength() throws SAXException {
85     throw new LocSAXException("A restriction with complex content doesn't support the 'maxLength' child element.", getLocator());
86   }
87
88   public XsEWhiteSpace createWhiteSpace() throws SAXException {
89     throw new LocSAXException("A restriction with complex content doesn't support the 'whiteSpace' child element.", getLocator());
90   }
91
92   public XsEPattern createPattern() throws SAXException {
93     throw new LocSAXException("A restriction with complex content doesn't support the 'pattern' child element.", getLocator());
94   }
95
96   public XsEEnumeration createEnumeration() throws SAXException {
97     throw new LocSAXException("A restriction with complex content doesn't support the 'enumeration' child element.", getLocator());
98   }
99 }
100
Popular Tags