KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > metadata > jaxrpcmapping > ExceptionMapping


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.webservice.metadata.jaxrpcmapping;
8
9 // $Id: ExceptionMapping.java,v 1.1 2004/05/14 18:34:23 tdiesler Exp $
10

11 import javax.xml.namespace.QName JavaDoc;
12 import java.util.ArrayList JavaDoc;
13
14 /**
15  * XML mapping of the java-wsdl-mapping/exception-mapping element.
16  *
17  * @author Thomas.Diesler@jboss.org
18  * @since 14-May-2004
19  */

20 public class ExceptionMapping
21 {
22    // The parent <java-wsdl-mapping> element
23
private JavaWsdlMapping javaWsdlMapping;
24
25    // The required <exception-type> element
26
private String JavaDoc exceptionType;
27    // The required <wsdl-message> element
28
private QName JavaDoc wsdlMessage;
29    // The optional <constructor-parameter-order> element
30
private ArrayList JavaDoc constructorParameterOrder = new ArrayList JavaDoc();
31
32    public ExceptionMapping(JavaWsdlMapping javaWsdlMapping)
33    {
34       this.javaWsdlMapping = javaWsdlMapping;
35    }
36
37    public JavaWsdlMapping getJavaWsdlMapping()
38    {
39       return javaWsdlMapping;
40    }
41
42    public String JavaDoc getExceptionType()
43    {
44       return exceptionType;
45    }
46
47    public void setExceptionType(String JavaDoc exceptionType)
48    {
49       this.exceptionType = exceptionType;
50    }
51
52    public QName JavaDoc getWsdlMessage()
53    {
54       return wsdlMessage;
55    }
56
57    public void setWsdlMessage(QName JavaDoc wsdlMessage)
58    {
59       this.wsdlMessage = wsdlMessage;
60    }
61
62    public String JavaDoc[] getConstructorParameterOrder()
63    {
64       String JavaDoc[] arr = new String JavaDoc[constructorParameterOrder.size()];
65       constructorParameterOrder.toArray(arr);
66       return arr;
67    }
68
69    public void addConstructorParameter(String JavaDoc elementName)
70    {
71       constructorParameterOrder.add(elementName);
72    }
73 }
74
Popular Tags