001: /**
002: *
003: * Licensed to the Apache Software Foundation (ASF) under one or more
004: * contributor license agreements. See the NOTICE file distributed with
005: * this work for additional information regarding copyright ownership.
006: * The ASF licenses this file to You under the Apache License, Version 2.0
007: * (the "License"); you may not use this file except in compliance with
008: * the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */package org.apache.openejb.jee;
018:
019: import javax.xml.bind.JAXBElement;
020: import javax.xml.bind.annotation.XmlElementDecl;
021: import javax.xml.bind.annotation.XmlRegistry;
022: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
023: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
024: import javax.xml.namespace.QName;
025:
026: /**
027: * This object contains factory methods for each
028: * Java content interface and Java element interface
029: * generated in the org.apache.openejb.jee2 package.
030: * <p>An ObjectFactory allows you to programatically
031: * construct new instances of the Java representation
032: * for XML content. The Java representation of XML
033: * content can consist of schema derived interfaces
034: * and classes representing the binding of schema
035: * type definitions, element declarations and model
036: * groups. Factory methods for each of these are
037: * provided in this class.
038: */
039: @XmlRegistry
040: public class ObjectFactory {
041:
042: private final static QName _EjbJar_QNAME = new QName(
043: "http://java.sun.com/xml/ns/javaee", "ejb-jar");
044: private final static QName _EjbRelationTypeEjbRelationName_QNAME = new QName(
045: "http://java.sun.com/xml/ns/javaee", "ejb-relation-name");
046: private final static QName _EjbRelationTypeEjbRelationshipRole_QNAME = new QName(
047: "http://java.sun.com/xml/ns/javaee",
048: "ejb-relationship-role");
049: private final static QName _EjbRelationTypeDescription_QNAME = new QName(
050: "http://java.sun.com/xml/ns/javaee", "description");
051: private final static QName _WebResourceCollectionTypeHttpMethod_QNAME = new QName(
052: "http://java.sun.com/xml/ns/javaee", "http-method");
053: private final static QName _TldTaglib_QNAME = new QName(
054: "http://java.sun.com/xml/ns/javaee", "web-app");
055: private final static QName _WebApp_QNAME = new QName(
056: "http://java.sun.com/xml/ns/javaee", "taglib");
057: private final static QName _Connector_QNAME = new QName(
058: "http://java.sun.com/xml/ns/j2ee", "connector");
059: private final static QName _JavaWsdlMapping_QNAME = new QName(
060: "http://java.sun.com/xml/ns/j2ee", "java-wsdl-mapping");
061: private final static QName _Webservices_QNAME = new QName(
062: "http://java.sun.com/xml/ns/javaee", "webservices");
063:
064: /**
065: * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.openejb.jee2
066: */
067: public ObjectFactory() {
068: }
069:
070: /**
071: * Create an instance of {@link JAXBElement }{@code <}{@link EjbJar }{@code >}}
072: */
073: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="ejb-jar")
074: public JAXBElement<EjbJar> createEjbJar(EjbJar value) {
075: return new JAXBElement<EjbJar>(_EjbJar_QNAME, EjbJar.class,
076: null, value);
077: }
078:
079: /**
080: * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
081: */
082: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="ejb-relation-name",scope=EjbRelation.class)
083: public JAXBElement<String> createEjbRelationTypeEjbRelationName(
084: String value) {
085: return new JAXBElement<String>(
086: _EjbRelationTypeEjbRelationName_QNAME, String.class,
087: EjbRelation.class, value);
088: }
089:
090: /**
091: * Create an instance of {@link JAXBElement }{@code <}{@link EjbRelationshipRole }{@code >}}
092: */
093: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="ejb-relationship-role",scope=EjbRelation.class)
094: public JAXBElement<EjbRelationshipRole> createEjbRelationTypeEjbRelationshipRole(
095: EjbRelationshipRole value) {
096: return new JAXBElement<EjbRelationshipRole>(
097: _EjbRelationTypeEjbRelationshipRole_QNAME,
098: EjbRelationshipRole.class, EjbRelation.class, value);
099: }
100:
101: /**
102: * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}}
103: */
104: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="description",scope=EjbRelation.class)
105: public JAXBElement<Text> createEjbRelationTypeDescription(Text value) {
106: return new JAXBElement<Text>(_EjbRelationTypeDescription_QNAME,
107: Text.class, EjbRelation.class, value);
108: }
109:
110: /**
111: * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
112: *
113: */
114: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="http-method",scope=WebResourceCollection.class)
115: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
116: public JAXBElement<String> createWebResourceCollectionTypeHttpMethod(
117: String value) {
118: return new JAXBElement<String>(
119: _WebResourceCollectionTypeHttpMethod_QNAME,
120: String.class, WebResourceCollection.class, value);
121: }
122:
123: /**
124: * Create an instance of {@link JAXBElement }{@code <}{@link WebApp }{@code >}}
125: *
126: */
127: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="web-app")
128: public JAXBElement<WebApp> createWebApp(WebApp value) {
129: return new JAXBElement<WebApp>(_WebApp_QNAME, WebApp.class,
130: null, value);
131: }
132:
133: /**
134: * Create an instance of {@link JAXBElement }{@code <}{@link TldTaglib }{@code >}}
135: *
136: */
137: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="taglib")
138: public JAXBElement<TldTaglib> createTldTaglib(TldTaglib value) {
139: return new JAXBElement<TldTaglib>(_TldTaglib_QNAME,
140: TldTaglib.class, null, value);
141: }
142:
143: /**
144: * Create an instance of {@link JAXBElement }{@code <}{@link Connector }{@code >}}
145: *
146: */
147: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/j2ee",name="connector")
148: public JAXBElement<Connector> createConnector(Connector value) {
149: return new JAXBElement<Connector>(_Connector_QNAME,
150: Connector.class, null, value);
151: }
152:
153: /**
154: * Create an instance of {@link JAXBElement }{@code <}{@link JavaWsdlMapping }{@code >}}
155: *
156: */
157: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/j2ee",name="java-wsdl-mapping")
158: public JAXBElement<JavaWsdlMapping> createConnector(
159: JavaWsdlMapping value) {
160: return new JAXBElement<JavaWsdlMapping>(_JavaWsdlMapping_QNAME,
161: JavaWsdlMapping.class, null, value);
162: }
163:
164: /**
165: * Create an instance of {@link JAXBElement }{@code <}{@link Webservices }{@code >}}
166: *
167: */
168: @XmlElementDecl(namespace="http://java.sun.com/xml/ns/javaee",name="webservices")
169: public JAXBElement<Webservices> createConnector(Webservices value) {
170: return new JAXBElement<Webservices>(_Webservices_QNAME,
171: Webservices.class, null, value);
172: }
173: }
|