001: /*
002: * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: *
023: * Free Software Foundation, Inc.
024: * 59 Temple Place, Suite 330
025: * Boston, MA 02111-1307 USA
026: *
027: * @author Scott Ferguson
028: */
029:
030: package javax.xml.soap;
031:
032: import org.w3c.dom.*;
033: import javax.xml.namespace.*;
034: import java.util.*;
035:
036: public interface SOAPElement extends Node, Element {
037: public SOAPElement addAttribute(Name name, String value)
038: throws SOAPException;
039:
040: public SOAPElement addAttribute(QName qname, String value)
041: throws SOAPException;
042:
043: public SOAPElement addChildElement(Name name) throws SOAPException;
044:
045: public SOAPElement addChildElement(QName qname)
046: throws SOAPException;
047:
048: public SOAPElement addChildElement(SOAPElement element)
049: throws SOAPException;
050:
051: public SOAPElement addChildElement(String localName)
052: throws SOAPException;
053:
054: public SOAPElement addChildElement(String localName, String prefix)
055: throws SOAPException;
056:
057: public SOAPElement addChildElement(String localName, String prefix,
058: String uri) throws SOAPException;
059:
060: public SOAPElement addNamespaceDeclaration(String prefix, String uri)
061: throws SOAPException;
062:
063: public SOAPElement addTextNode(String text) throws SOAPException;
064:
065: public QName createQName(String localName, String prefix)
066: throws SOAPException;
067:
068: public Iterator getAllAttributes();
069:
070: public Iterator getAllAttributesAsQNames();
071:
072: public String getAttributeValue(Name name);
073:
074: public String getAttributeValue(QName qname);
075:
076: public Iterator getChildElements();
077:
078: public Iterator getChildElements(Name name);
079:
080: public Iterator getChildElements(QName qname);
081:
082: public Name getElementName();
083:
084: public QName getElementQName();
085:
086: public String getEncodingStyle();
087:
088: public Iterator getNamespacePrefixes();
089:
090: public String getNamespaceURI(String prefix);
091:
092: public Iterator getVisibleNamespacePrefixes();
093:
094: public boolean removeAttribute(Name name);
095:
096: public boolean removeAttribute(QName qname);
097:
098: public void removeContents();
099:
100: public boolean removeNamespaceDeclaration(String prefix);
101:
102: public SOAPElement setElementQName(QName newName)
103: throws SOAPException;
104:
105: public void setEncodingStyle(String encodingStyle)
106: throws SOAPException;
107: }
|