01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee;
17:
18: import javax.xml.bind.annotation.XmlAccessType;
19: import javax.xml.bind.annotation.XmlAccessorType;
20: import javax.xml.bind.annotation.XmlAttribute;
21: import javax.xml.bind.annotation.XmlElement;
22: import javax.xml.bind.annotation.XmlID;
23: import javax.xml.bind.annotation.XmlType;
24: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
25: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
26: import javax.xml.namespace.QName;
27:
28: /**
29: * The exception-mapping element defines the mapping between the
30: * service specific exception types and wsdl faults and
31: * SOAP headerfaults.
32: * <p/>
33: * This element should be interpreted with respect to the
34: * mapping between a method and an operation which provides the
35: * mapping context.
36: * <p/>
37: * Used in: service-endpoint-method-mapping
38: */
39: @XmlAccessorType(XmlAccessType.FIELD)
40: @XmlType(name="exception-mappingType",propOrder={"exceptionType","wsdlMessage","wsdlMessagePartName","constructorParameterOrder"})
41: public class ExceptionMapping implements Keyable<QName> {
42: @XmlElement(name="exception-type",required=true)
43: protected String exceptionType;
44: @XmlElement(name="wsdl-message",required=true)
45: protected QName wsdlMessage;
46: @XmlElement(name="wsdl-message-part-name")
47: protected String wsdlMessagePartName;
48: @XmlElement(name="constructor-parameter-order")
49: protected ConstructorParameterOrder constructorParameterOrder;
50: @XmlAttribute
51: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
52: @XmlID
53: protected String id;
54:
55: public QName getKey() {
56: return getWsdlMessage();
57: }
58:
59: public String getExceptionType() {
60: return exceptionType;
61: }
62:
63: public void setExceptionType(String value) {
64: this .exceptionType = value;
65: }
66:
67: public QName getWsdlMessage() {
68: return wsdlMessage;
69: }
70:
71: public void setWsdlMessage(QName value) {
72: this .wsdlMessage = value;
73: }
74:
75: public String getWsdlMessagePartName() {
76: return wsdlMessagePartName;
77: }
78:
79: public void setWsdlMessagePartName(String value) {
80: this .wsdlMessagePartName = value;
81: }
82:
83: public ConstructorParameterOrder getConstructorParameterOrder() {
84: return constructorParameterOrder;
85: }
86:
87: public void setConstructorParameterOrder(
88: ConstructorParameterOrder value) {
89: this .constructorParameterOrder = value;
90: }
91:
92: public String getId() {
93: return id;
94: }
95:
96: public void setId(String value) {
97: this.id = value;
98: }
99: }
|