KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > soap > impl > llom > SOAPFaultReasonImpl


1 package org.apache.axis2.soap.impl.llom;
2
3 import org.apache.axis2.om.OMElement;
4 import org.apache.axis2.om.OMXMLParserWrapper;
5 import org.apache.axis2.soap.SOAPFault;
6 import org.apache.axis2.soap.SOAPFaultReason;
7 import org.apache.axis2.soap.SOAPFaultText;
8 import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
9 import org.apache.axis2.soap.impl.llom.util.UtilProvider;
10
11 /**
12  * Copyright 2001-2004 The Apache Software Foundation.
13  * <p/>
14  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
15  * use this file except in compliance with the License. You may obtain a copy of
16  * the License at
17  * <p/>
18  * http://www.apache.org/licenses/LICENSE-2.0
19  * <p/>
20  * Unless required by applicable law or agreed to in writing, software
21  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
22  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
23  * License for the specific language governing permissions and limitations under
24  * the License.
25  * <p/>
26  */

27 public abstract class SOAPFaultReasonImpl extends SOAPElement implements SOAPFaultReason{
28     protected SOAPFaultText text;
29
30     /**
31      * Constructor OMElementImpl
32      *
33      * @param parent
34      * @param builder
35      */

36     public SOAPFaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder) {
37         super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, builder);
38     }
39
40     /**
41      * @param parent
42      */

43     public SOAPFaultReasonImpl(OMElement parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
44         super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, extractNamespaceFromParent);
45     }
46
47     /**
48      * Eran Chinthaka (chinthaka@apache.org)
49      */

50     public void setSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException {
51         UtilProvider.setNewElement(this, text, soapFaultText);
52     }
53                                                                                                                       
54     public SOAPFaultText getSOAPText() {
55         return (SOAPFaultText) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME);
56     }
57 }
58
Popular Tags