KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > jaxb > impl > JAXBObjectFactoryImpl


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.jaxb.impl;
18
19 import org.apache.ws.jaxme.xs.XSAttribute;
20 import org.apache.ws.jaxme.xs.XSElement;
21 import org.apache.ws.jaxme.xs.XSEnumeration;
22 import org.apache.ws.jaxme.xs.XSGroup;
23 import org.apache.ws.jaxme.xs.XSObject;
24 import org.apache.ws.jaxme.xs.XSSchema;
25 import org.apache.ws.jaxme.xs.XSSimpleType;
26 import org.apache.ws.jaxme.xs.XSType;
27 import org.apache.ws.jaxme.xs.impl.XSObjectFactoryImpl;
28 import org.apache.ws.jaxme.xs.parser.XSContext;
29 import org.apache.ws.jaxme.xs.xml.XsEChoice;
30 import org.apache.ws.jaxme.xs.xml.XsEEnumeration;
31 import org.apache.ws.jaxme.xs.xml.XsEList;
32 import org.apache.ws.jaxme.xs.xml.XsERestriction;
33 import org.apache.ws.jaxme.xs.xml.XsESchema;
34 import org.apache.ws.jaxme.xs.xml.XsESequence;
35 import org.apache.ws.jaxme.xs.xml.XsETopLevelSimpleType;
36 import org.apache.ws.jaxme.xs.xml.XsEUnion;
37 import org.apache.ws.jaxme.xs.xml.XsTAll;
38 import org.apache.ws.jaxme.xs.xml.XsTAttribute;
39 import org.apache.ws.jaxme.xs.xml.XsTComplexType;
40 import org.apache.ws.jaxme.xs.xml.XsTElement;
41 import org.apache.ws.jaxme.xs.xml.XsTGroupRef;
42 import org.apache.ws.jaxme.xs.xml.XsTLocalComplexType;
43 import org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType;
44 import org.apache.ws.jaxme.xs.xml.XsTNamedGroup;
45 import org.apache.ws.jaxme.xs.xml.XsTSimpleRestrictionType;
46 import org.xml.sax.SAXException JavaDoc;
47
48 /**
49  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
50  */

51 public class JAXBObjectFactoryImpl extends XSObjectFactoryImpl {
52   public XSSimpleType newXSAtomicType(XSType pResultType, XSType pRestrictedType, XsERestriction pRestriction) throws SAXException JavaDoc {
53     return new JAXBSimpleTypeImpl(pResultType, super.newXSAtomicType(pResultType, pRestrictedType, pRestriction));
54   }
55
56   public XSSimpleType newXSAtomicType(XSType pResultType, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction) throws SAXException JavaDoc {
57     return new JAXBSimpleTypeImpl(pResultType, super.newXSAtomicType(pResultType, pRestrictedType, pRestriction));
58   }
59
60   public XSAttribute newXSAttribute(XSObject pParent, XsTAttribute pAttribute) throws SAXException JavaDoc {
61     return new JAXBAttributeImpl(pParent, pAttribute);
62   }
63
64   public XSEnumeration newXSEnumeration(XSObject pParent, XsEEnumeration pEnumeration) throws SAXException JavaDoc {
65     return new JAXBEnumerationImpl(pParent, pEnumeration);
66   }
67
68   public XSSchema newXSSchema(XSContext pContext, XsESchema pSchema) throws SAXException JavaDoc {
69     return new JAXBSchemaImpl(pContext, pSchema);
70   }
71
72   public XSGroup newXSGroup(XSObject pParent, XsTAll pAll) throws SAXException JavaDoc {
73     return new JAXBGroupImpl(pParent, pAll);
74   }
75
76   public XSGroup newXSGroup(XSObject pParent, XsEChoice pChoice) throws SAXException JavaDoc {
77     return new JAXBGroupImpl(pParent, pChoice);
78   }
79
80   public XSGroup newXSGroup(XSObject pParent, XsESequence pSequence) throws SAXException JavaDoc {
81     return new JAXBGroupImpl(pParent, pSequence);
82   }
83
84   public XSGroup newXSGroup(XSObject pParent, XsTGroupRef pGroupRef) throws SAXException JavaDoc {
85     return new JAXBGroupImpl(pParent, pGroupRef);
86   }
87
88   public XSGroup newXSGroup(XSObject pParent, XsTNamedGroup pNamedGroup) throws SAXException JavaDoc {
89     return new JAXBGroupImpl(pParent, pNamedGroup);
90   }
91
92   public XSSimpleType newXSListType(XSType pResultType, XsEList pList) throws SAXException JavaDoc {
93     return new JAXBSimpleTypeImpl(pResultType, super.newXSListType(pResultType, pList));
94   }
95
96   public XSSimpleType newXSListType(XSType pResultType, XSType pRestrictedType, XsERestriction pRestriction) throws SAXException JavaDoc {
97     return new JAXBSimpleTypeImpl(pResultType, super.newXSListType(pResultType, pRestrictedType, pRestriction));
98   }
99
100   public XSSimpleType newXSListType(XSType pResultType, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction) throws SAXException JavaDoc {
101     return new JAXBSimpleTypeImpl(pResultType, super.newXSListType(pResultType, pRestrictedType, pRestriction));
102   }
103
104   public XSType newXSType(XSObject pParent, XsETopLevelSimpleType pType) throws SAXException JavaDoc {
105     return new JAXBTypeImpl(pParent, pType);
106   }
107
108   public XSType newXSType(XSObject pParent, XsTComplexType pType) throws SAXException JavaDoc {
109     return new JAXBTypeImpl(pParent, pType);
110   }
111
112   public XSType newXSType(XSObject pParent, XsTLocalComplexType pType) throws SAXException JavaDoc {
113     return new JAXBTypeImpl(pParent, pType);
114   }
115
116   public XSType newXSType(XSObject pParent, XsTLocalSimpleType pType) throws SAXException JavaDoc {
117     return new JAXBTypeImpl(pParent, pType);
118   }
119
120   public XSType newXSType(XSObject pParent, XsTSimpleRestrictionType pType) throws SAXException JavaDoc {
121     return new JAXBTypeImpl(pParent, pType);
122   }
123
124   public XSElement newXSElement(XSObject pParent, XsTElement pElement) throws SAXException JavaDoc {
125     return new JAXBElementImpl(pParent, pElement);
126   }
127
128   public XSSimpleType newXSUnionType(XSType pResultType, XsEUnion pUnion) throws SAXException JavaDoc {
129     return new JAXBSimpleTypeImpl(pResultType, super.newXSUnionType(pResultType, pUnion));
130   }
131
132   public XSSimpleType newXSUnionType(XSType pResultType, XSType pRestrictedType, XsERestriction pRestriction) throws SAXException JavaDoc {
133     return new JAXBSimpleTypeImpl(pResultType, super.newXSUnionType(pResultType, pRestrictedType, pRestriction));
134   }
135
136   public XSSimpleType newXSUnionType(XSType pResultType, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction) throws SAXException JavaDoc {
137     return new JAXBSimpleTypeImpl(pResultType, super.newXSUnionType(pResultType, pRestrictedType, pRestriction));
138   }
139 }
140
Popular Tags