KickJava   Java API By Example, From Geeks To Geeks.

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


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.SOAPFaultDetail;
7 import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
8
9 import java.util.Iterator JavaDoc;
10
11 /*
12  * Copyright 2004,2005 The Apache Software Foundation.
13  *
14  * Licensed under the Apache License, Version 2.0 (the "License");
15  * you may not use this file except in compliance with the License.
16  * You may obtain a copy of the License at
17  *
18  * http://www.apache.org/licenses/LICENSE-2.0
19  *
20  * Unless required by applicable law or agreed to in writing, software
21  * distributed under the License is distributed on an "AS IS" BASIS,
22  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23  * See the License for the specific language governing permissions and
24  * limitations under the License.
25  *
26  * author : Eran Chinthaka (chinthaka@apache.org)
27  */

28
29 public abstract class SOAPFaultDetailImpl extends SOAPElement implements SOAPFaultDetail{
30
31     protected SOAPFaultDetailImpl(SOAPFault parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
32         super(parent, SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, extractNamespaceFromParent);
33     }
34
35     protected SOAPFaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder) {
36         super(parent, SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, builder);
37     }
38
39     public void addDetailEntry(OMElement detailElement) {
40         this.addChild(detailElement);
41     }
42
43     public Iterator JavaDoc getAllDetailEntries() {
44         return this.getChildren();
45     }
46 }
47
Popular Tags