1 /* 2 * Copyright 2002-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.apache.axis.message; 18 19 import javax.xml.soap.DetailEntry; 20 import javax.xml.soap.Name; 21 import javax.xml.soap.SOAPException; 22 import java.util.Iterator; 23 24 /** 25 * Detail Container implementation 26 * 27 * @author Davanum Srinivas (dims@yahoo.com) 28 */ 29 public class Detail extends SOAPFaultElement implements javax.xml.soap.Detail { 30 31 public Detail() { 32 } 33 34 /** 35 * Creates a new <code>DetailEntry</code> object with the given 36 * name and adds it to this <code>Detail</code> object. 37 * @param name a <code>Name</code> object identifying the new <code>DetailEntry</code> object 38 * @return DetailEntry. 39 * @throws SOAPException thrown when there is a problem in adding a DetailEntry object to this Detail object. 40 */ 41 public DetailEntry addDetailEntry(Name name) throws SOAPException { 42 org.apache.axis.message.DetailEntry entry = new org.apache.axis.message.DetailEntry(name); 43 addChildElement(entry); 44 return entry; 45 } 46 47 /** 48 * Gets a list of the detail entries in this <code>Detail</code> object. 49 * @return an <code>Iterator</code> object over the <code>DetailEntry</code> 50 * objects in this <code>Detail</code> object 51 */ 52 public Iterator getDetailEntries() { 53 return this.getChildElements(); 54 } 55 } 56