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.oejb3;
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.namespace.QName;
023:
024: /**
025: * This object contains factory methods for each
026: * Java content interface and Java element interface
027: * generated in the org.apache.openejb.alt.config.ejb package.
028: * <p>An ObjectFactory allows you to programatically
029: * construct new instances of the Java representation
030: * for XML content. The Java representation of XML
031: * content can consist of schema derived interfaces
032: * and classes representing the binding of schema
033: * type definitions, element declarations and model
034: * groups. Factory methods for each of these are
035: * provided in this class.
036: */
037: @XmlRegistry
038: public class ObjectFactory {
039:
040: private final static QName _MethodParam_QNAME = new QName(
041: "http://www.openejb.org/openejb-jar/1.1", "method-param");
042: private final static QName _MethodName_QNAME = new QName(
043: "http://www.openejb.org/openejb-jar/1.1", "method-name");
044: private final static QName _ObjectQl_QNAME = new QName(
045: "http://www.openejb.org/openejb-jar/1.1", "object-ql");
046: private final static QName _Description_QNAME = new QName(
047: "http://www.openejb.org/openejb-jar/1.1", "description");
048:
049: /**
050: * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.openejb.alt.config.ejb
051: */
052: public ObjectFactory() {
053: }
054:
055: /**
056: * Create an instance of {@link EjbDeployment }
057: */
058: public EjbDeployment createEjbDeployment() {
059: return new EjbDeployment();
060: }
061:
062: /**
063: * Create an instance of {@link OpenejbJar }
064: */
065: public OpenejbJar createOpenejbJar() {
066: return new OpenejbJar();
067: }
068:
069: /**
070: * Create an instance of {@link EjbLink }
071: */
072: public EjbLink createEjbLink() {
073: return new EjbLink();
074: }
075:
076: /**
077: * Create an instance of {@link ResourceLink }
078: */
079: public ResourceLink createResourceLink() {
080: return new ResourceLink();
081: }
082:
083: /**
084: * Create an instance of {@link MethodParams }
085: */
086: public MethodParams createMethodParams() {
087: return new MethodParams();
088: }
089:
090: /**
091: * Create an instance of {@link QueryMethod }
092: */
093: public QueryMethod createQueryMethod() {
094: return new QueryMethod();
095: }
096:
097: /**
098: * Create an instance of {@link Query }
099: */
100: public Query createQuery() {
101: return new Query();
102: }
103:
104: /**
105: * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
106: */
107: @XmlElementDecl(namespace="http://www.openejb.org/openejb-jar/1.1",name="method-param")
108: public JAXBElement<String> createMethodParam(String value) {
109: return new JAXBElement<String>(_MethodParam_QNAME,
110: String.class, null, value);
111: }
112:
113: /**
114: * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
115: */
116: @XmlElementDecl(namespace="http://www.openejb.org/openejb-jar/1.1",name="method-name")
117: public JAXBElement<String> createMethodName(String value) {
118: return new JAXBElement<String>(_MethodName_QNAME, String.class,
119: null, value);
120: }
121:
122: /**
123: * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
124: */
125: @XmlElementDecl(namespace="http://www.openejb.org/openejb-jar/1.1",name="object-ql")
126: public JAXBElement<String> createObjectQl(String value) {
127: return new JAXBElement<String>(_ObjectQl_QNAME, String.class,
128: null, value);
129: }
130:
131: /**
132: * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
133: */
134: @XmlElementDecl(namespace="http://www.openejb.org/openejb-jar/1.1",name="description")
135: public JAXBElement<String> createDescription(String value) {
136: return new JAXBElement<String>(_Description_QNAME,
137: String.class, null, value);
138: }
139:
140: }
|