01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.saaj;
20:
21: import org.apache.axiom.om.impl.dom.ElementImpl;
22:
23: import javax.xml.namespace.QName;
24: import javax.xml.soap.SOAPBody;
25: import javax.xml.soap.SOAPBodyElement;
26: import javax.xml.soap.SOAPElement;
27: import javax.xml.soap.SOAPException;
28: import java.util.Iterator;
29:
30: public class SOAPBodyElementImpl extends SOAPElementImpl implements
31: SOAPBodyElement {
32:
33: /** @param element */
34: public SOAPBodyElementImpl(ElementImpl element) {
35: super (element);
36: }
37:
38: public void setParentElement(SOAPElement parent)
39: throws SOAPException {
40: if (!(parent instanceof SOAPBody)) {
41: throw new IllegalArgumentException(
42: "Parent is not a SOAPBody");
43: }
44: this .parentElement = parent;
45: }
46:
47: public SOAPElement addAttribute(QName qname, String value)
48: throws SOAPException {
49: return super .addAttribute(qname, value);
50: }
51:
52: public SOAPElement addChildElement(QName qname)
53: throws SOAPException {
54: return super .addChildElement(qname);
55: }
56:
57: public QName createQName(String localName, String prefix)
58: throws SOAPException {
59: return super .createQName(localName, prefix);
60: }
61:
62: public Iterator getAllAttributesAsQNames() {
63: return super .getAllAttributesAsQNames();
64: }
65:
66: public String getAttributeValue(QName qname) {
67: return super .getAttributeValue(qname);
68: }
69:
70: public Iterator getChildElements(QName qname) {
71: return super .getChildElements(qname);
72: }
73:
74: public QName getElementQName() {
75: return super .getElementQName();
76: }
77:
78: public boolean removeAttribute(QName qname) {
79: return super .removeAttribute(qname);
80: }
81:
82: public SOAPElement setElementQName(QName newName)
83: throws SOAPException {
84: return super.setElementQName(newName);
85: }
86: }
|