KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.apache.axis2.soap.impl.llom;
2
3 import org.apache.axis2.om.OMXMLParserWrapper;
4 import org.apache.axis2.soap.SOAPFault;
5 import org.apache.axis2.soap.SOAPFaultCode;
6 import org.apache.axis2.soap.SOAPFaultSubCode;
7 import org.apache.axis2.soap.SOAPFaultValue;
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 SOAPFaultCodeImpl extends SOAPElement implements SOAPFaultCode {
28
29
30     /**
31      * Constructor OMElementImpl
32      *
33      * @param localName
34      * @param ns
35      * @param parent
36      * @param builder
37      */

38     public SOAPFaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder) {
39         super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, builder);
40     }
41
42     /**
43      * @param parent
44      * @param parent
45      */

46     public SOAPFaultCodeImpl(SOAPFault parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
47         super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, extractNamespaceFromParent);
48     }
49
50        /**
51      * Eran Chinthaka (chinthaka@apache.org)
52      */

53     public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
54         UtilProvider.setNewElement(this, value, value);
55     }
56
57     public SOAPFaultValue getValue() {
58        return (SOAPFaultValue) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
59     }
60
61     public void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException {
62         UtilProvider.setNewElement(this, getSubCode(), value);
63     }
64
65     public SOAPFaultSubCode getSubCode() {
66         return (SOAPFaultSubCode) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
67     }
68 }
69
Popular Tags