001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlID;
023: import javax.xml.bind.annotation.XmlType;
024: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
025: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
026: import java.util.ArrayList;
027: import java.util.List;
028:
029: /**
030: * The service-endpoint-method-mapping element defines the mapping of
031: * Java methods to operations (which are not uniquely qualified by
032: * qnames).
033: * <p/>
034: * The wsdl-operation should be interpreted with respect to the
035: * portType and binding in which this definition is embedded within.
036: * See the definitions for service-endpoint-interface-mapping and
037: * service-interface-mapping to acquire the proper context. The
038: * wrapped-element indicator should only be specified when a WSDL
039: * message wraps an element type. The wsdl-return-value-mapping is
040: * not specified for one-way operations.
041: * <p/>
042: * Used in: service-endpoint-interface-mapping
043: */
044: @XmlAccessorType(XmlAccessType.FIELD)
045: @XmlType(name="service-endpoint-method-mappingType",propOrder={"javaMethodName","wsdlOperation","wrappedElement","methodParamPartsMapping","wsdlReturnValueMapping"})
046: public class ServiceEndpointMethodMapping {
047: @XmlElement(name="java-method-name",required=true)
048: protected String javaMethodName;
049: @XmlElement(name="wsdl-operation",required=true)
050: protected String wsdlOperation;
051: @XmlElement(name="wrapped-element")
052: protected Object wrappedElement;
053: @XmlElement(name="method-param-parts-mapping")
054: protected List<MethodParamPartsMapping> methodParamPartsMapping;
055: @XmlElement(name="wsdl-return-value-mapping")
056: protected WsdlReturnValueMapping wsdlReturnValueMapping;
057: @XmlAttribute
058: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
059: @XmlID
060: protected String id;
061:
062: public String getJavaMethodName() {
063: return javaMethodName;
064: }
065:
066: public void setJavaMethodName(String value) {
067: this .javaMethodName = value;
068: }
069:
070: public String getWsdlOperation() {
071: return wsdlOperation;
072: }
073:
074: public void setWsdlOperation(String value) {
075: this .wsdlOperation = value;
076: }
077:
078: public Object getWrappedElement() {
079: return wrappedElement;
080: }
081:
082: public void setWrappedElement(Object value) {
083: this .wrappedElement = value;
084: }
085:
086: public List<MethodParamPartsMapping> getMethodParamPartsMapping() {
087: if (methodParamPartsMapping == null) {
088: methodParamPartsMapping = new ArrayList<MethodParamPartsMapping>();
089: }
090: return this .methodParamPartsMapping;
091: }
092:
093: public WsdlReturnValueMapping getWsdlReturnValueMapping() {
094: return wsdlReturnValueMapping;
095: }
096:
097: public void setWsdlReturnValueMapping(WsdlReturnValueMapping value) {
098: this .wsdlReturnValueMapping = value;
099: }
100:
101: public String getId() {
102: return id;
103: }
104:
105: public void setId(String value) {
106: this.id = value;
107: }
108: }
|