jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java
author avstepan
Wed, 22 Apr 2015 15:26:20 +0400
changeset 30005 b2f720a258c4
parent 28326 2b9860c0d68a
child 31746 7573de6b8e46
permissions -rw-r--r--
8077332: tidy warnings from javax/xml Summary: some HTML markup fix (jaxws part) Reviewed-by: joehw, lancea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     1
/*
22679
d785acd84a14 8032639: Update copyright year to match last edit in jaxws repository for 2013
mkos
parents: 16791
diff changeset
     2
 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     4
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    10
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    15
 * accompanied this code).
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    16
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    20
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    23
 * questions.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    24
 */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    25
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    26
package javax.xml.soap;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    27
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    28
import java.util.Iterator;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    29
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    30
import javax.xml.namespace.QName;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    31
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    32
/**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    33
 * An object representing an element of a SOAP message that is allowed but not
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    34
 * specifically prescribed by a SOAP specification. This interface serves as the
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    35
 * base interface for those objects that are specifically prescribed by a SOAP
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    36
 * specification.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    37
 * <p>
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    38
 * Methods in this interface that are required to return SAAJ specific objects
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    39
 * may "silently" replace nodes in the tree as required to successfully return
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    40
 * objects of the correct type. See {@link #getChildElements()} and
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    41
 * {@link <a HREF="package-summary.html#package_description">javax.xml.soap</a>}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    42
 * for details.
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
    43
 *
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
    44
 * @since 1.6
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    45
 */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    46
public interface SOAPElement extends Node, org.w3c.dom.Element {
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    47
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    48
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    49
     * Creates a new {@code SOAPElement} object initialized with the
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    50
     * given {@code Name} object and adds the new element to this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    51
     * {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    52
     * <P>
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    53
     * This method may be deprecated in a future release of SAAJ in favor of
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    54
     * addChildElement(javax.xml.namespace.QName)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    55
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    56
     * @param name a {@code Name} object with the XML name for the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    57
     *        new element
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    58
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    59
     * @return the new {@code SOAPElement} object that was created
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    60
     * @exception SOAPException if there is an error in creating the
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    61
     *                          {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    62
     * @see SOAPElement#addChildElement(javax.xml.namespace.QName)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    63
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    64
    public SOAPElement addChildElement(Name name) throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    65
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    66
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    67
     * Creates a new {@code SOAPElement} object initialized with the given
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    68
     * {@code QName} object and adds the new element to this {@code SOAPElement}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    69
     *  object. The  <i>namespace</i>, <i>localname</i> and <i>prefix</i> of the new
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    70
     * {@code SOAPElement} are all taken  from the {@code qname} argument.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    71
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    72
     * @param qname a {@code QName} object with the XML name for the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    73
     *        new element
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    74
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    75
     * @return the new {@code SOAPElement} object that was created
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    76
     * @exception SOAPException if there is an error in creating the
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    77
     *                          {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    78
     * @see SOAPElement#addChildElement(Name)
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
    79
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    80
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    81
    public SOAPElement addChildElement(QName qname) throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    82
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    83
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    84
     * Creates a new {@code SOAPElement} object initialized with the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    85
     * specified local name and adds the new element to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    86
     * {@code SOAPElement} object.
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    87
     * The new  {@code SOAPElement} inherits any in-scope default namespace.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    88
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    89
     * @param localName a {@code String} giving the local name for
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    90
     *          the element
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    91
     * @return the new {@code SOAPElement} object that was created
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    92
     * @exception SOAPException if there is an error in creating the
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    93
     *                          {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    94
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    95
    public SOAPElement addChildElement(String localName) throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    96
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    97
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
    98
     * Creates a new {@code SOAPElement} object initialized with the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    99
     * specified local name and prefix and adds the new element to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   100
     * {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   101
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   102
     * @param localName a {@code String} giving the local name for
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   103
     *        the new element
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   104
     * @param prefix a {@code String} giving the namespace prefix for
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   105
     *        the new element
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   106
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   107
     * @return the new {@code SOAPElement} object that was created
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   108
     * @exception SOAPException if the {@code prefix} is not valid in the
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   109
     *         context of this {@code SOAPElement} or  if there is an error in creating the
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   110
     *                          {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   111
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   112
    public SOAPElement addChildElement(String localName, String prefix)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   113
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   114
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   115
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   116
     * Creates a new {@code SOAPElement} object initialized with the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   117
     * specified local name, prefix, and URI and adds the new element to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   118
     * {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   119
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   120
     * @param localName a {@code String} giving the local name for
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   121
     *        the new element
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   122
     * @param prefix a {@code String} giving the namespace prefix for
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   123
     *        the new element
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   124
     * @param uri a {@code String} giving the URI of the namespace
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   125
     *        to which the new element belongs
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   126
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   127
     * @return the new {@code SOAPElement} object that was created
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   128
     * @exception SOAPException if there is an error in creating the
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   129
     *                          {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   130
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   131
    public SOAPElement addChildElement(String localName, String prefix,
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   132
                                       String uri)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   133
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   134
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   135
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   136
     * Add a {@code SOAPElement} as a child of this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   137
     * {@code SOAPElement} instance. The {@code SOAPElement}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   138
     * is expected to be created by a
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   139
     * {@code SOAPFactory}. Callers should not rely on the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   140
     * element instance being added as is into the XML
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   141
     * tree. Implementations could end up copying the content
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   142
     * of the {@code SOAPElement} passed into an instance of
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   143
     * a different {@code SOAPElement} implementation. For
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   144
     * instance if {@code addChildElement()} is called on a
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   145
     * {@code SOAPHeader}, {@code element} will be copied
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   146
     * into an instance of a {@code SOAPHeaderElement}.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   147
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   148
     * <P>The fragment rooted in {@code element} is either added
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   149
     * as a whole or not at all, if there was an error.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   150
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   151
     * <P>The fragment rooted in {@code element} cannot contain
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   152
     * elements named "Envelope", "Header" or "Body" and in the SOAP
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   153
     * namespace. Any namespace prefixes present in the fragment
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   154
     * should be fully resolved using appropriate namespace
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   155
     * declarations within the fragment itself.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   156
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   157
     * @param element the {@code SOAPElement} to be added as a
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   158
     *                new child
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   159
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   160
     * @exception SOAPException if there was an error in adding this
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   161
     *                          element as a child
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   162
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   163
     * @return an instance representing the new SOAP element that was
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   164
     *         actually added to the tree.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   165
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   166
    public SOAPElement addChildElement(SOAPElement element)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   167
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   168
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   169
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   170
     * Detaches all children of this {@code SOAPElement}.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   171
     * <p>
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   172
     * This method is useful for rolling back the construction of partially
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   173
     * completed {@code SOAPHeaders} and {@code SOAPBodys} in
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   174
     * preparation for sending a fault when an error condition is detected. It
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   175
     * is also useful for recycling portions of a document within a SOAP
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   176
     * message.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   177
     *
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   178
     * @since 1.6, SAAJ 1.2
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   179
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   180
    public abstract void removeContents();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   181
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   182
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   183
     * Creates a new {@code Text} object initialized with the given
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   184
     * {@code String} and adds it to this {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   185
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   186
     * @param text a {@code String} object with the textual content to be added
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   187
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   188
     * @return the {@code SOAPElement} object into which
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   189
     *         the new {@code Text} object was inserted
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   190
     * @exception SOAPException if there is an error in creating the
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   191
     *                    new {@code Text} object or if it is not legal to
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   192
     *                      attach it as a child to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   193
     *                      {@code SOAPElement}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   194
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   195
    public SOAPElement addTextNode(String text) throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   196
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   197
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   198
     * Adds an attribute with the specified name and value to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   199
     * {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   200
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   201
     * @param name a {@code Name} object with the name of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   202
     * @param value a {@code String} giving the value of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   203
     * @return the {@code SOAPElement} object into which the attribute was
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   204
     *         inserted
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   205
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   206
     * @exception SOAPException if there is an error in creating the
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   207
     *                          Attribute, or it is invalid to set
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   208
                                an attribute with {@code Name}
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   209
                                 {@code name} on this SOAPElement.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   210
     * @see SOAPElement#addAttribute(javax.xml.namespace.QName, String)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   211
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   212
    public SOAPElement addAttribute(Name name, String value)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   213
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   214
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   215
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   216
     * Adds an attribute with the specified name and value to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   217
     * {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   218
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   219
     * @param qname a {@code QName} object with the name of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   220
     * @param value a {@code String} giving the value of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   221
     * @return the {@code SOAPElement} object into which the attribute was
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   222
     *         inserted
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   223
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   224
     * @exception SOAPException if there is an error in creating the
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   225
     *                          Attribute, or it is invalid to set
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   226
                                an attribute with {@code QName}
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   227
                                {@code qname} on this SOAPElement.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   228
     * @see SOAPElement#addAttribute(Name, String)
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   229
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   230
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   231
    public SOAPElement addAttribute(QName qname, String value)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   232
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   233
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   234
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   235
     * Adds a namespace declaration with the specified prefix and URI to this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   236
     * {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   237
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   238
     * @param prefix a {@code String} giving the prefix of the namespace
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   239
     * @param uri a {@code String} giving the uri of the namespace
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   240
     * @return the {@code SOAPElement} object into which this
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   241
     *          namespace declaration was inserted.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   242
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   243
     * @exception SOAPException if there is an error in creating the
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   244
     *                          namespace
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   245
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   246
    public SOAPElement addNamespaceDeclaration(String prefix, String uri)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   247
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   248
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   249
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   250
     * Returns the value of the attribute with the specified name.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   251
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   252
     * @param name a {@code Name} object with the name of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   253
     * @return a {@code String} giving the value of the specified
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   254
     *         attribute, Null if there is no such attribute
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   255
     * @see SOAPElement#getAttributeValue(javax.xml.namespace.QName)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   256
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   257
    public String getAttributeValue(Name name);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   258
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   259
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   260
     * Returns the value of the attribute with the specified qname.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   261
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   262
     * @param qname a {@code QName} object with the qname of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   263
     * @return a {@code String} giving the value of the specified
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   264
     *         attribute, Null if there is no such attribute
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   265
     * @see SOAPElement#getAttributeValue(Name)
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   266
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   267
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   268
    public String getAttributeValue(QName qname);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   269
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   270
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   271
     * Returns an {@code Iterator} over all of the attribute
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   272
     * {@code Name} objects in this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   273
     * {@code SOAPElement} object. The iterator can be used to get
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   274
     * the attribute names, which can then be passed to the method
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   275
     * {@code getAttributeValue} to retrieve the value of each
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   276
     * attribute.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   277
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   278
     * @see SOAPElement#getAllAttributesAsQNames()
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   279
     * @return an iterator over the names of the attributes
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   280
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   281
    public Iterator getAllAttributes();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   282
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   283
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   284
     * Returns an {@code Iterator} over all of the attributes
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   285
     * in this {@code SOAPElement}  as {@code QName} objects.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   286
     * The iterator can be used to get the attribute QName, which can then
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   287
     * be passed to the method {@code getAttributeValue} to retrieve
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   288
     * the value of each attribute.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   289
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   290
     * @return an iterator over the QNames of the attributes
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   291
     * @see SOAPElement#getAllAttributes()
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   292
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   293
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   294
    public Iterator getAllAttributesAsQNames();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   295
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   296
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   297
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   298
     * Returns the URI of the namespace that has the given prefix.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   299
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   300
     * @param prefix a {@code String} giving the prefix of the namespace
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   301
     *        for which to search
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   302
     * @return a {@code String} with the uri of the namespace that has
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   303
     *        the given prefix
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   304
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   305
    public String getNamespaceURI(String prefix);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   306
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   307
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   308
     * Returns an {@code Iterator} over the namespace prefix
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   309
     * {@code String}s declared by this element. The prefixes returned by
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   310
     * this iterator can be passed to the method
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   311
     * {@code getNamespaceURI} to retrieve the URI of each namespace.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   312
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   313
     * @return an iterator over the namespace prefixes in this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   314
     *         {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   315
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   316
    public Iterator getNamespacePrefixes();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   317
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   318
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   319
     * Returns an {@code Iterator} over the namespace prefix
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   320
     * {@code String}s visible to this element. The prefixes returned by
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   321
     * this iterator can be passed to the method
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   322
     * {@code getNamespaceURI} to retrieve the URI of each namespace.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   323
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   324
     * @return an iterator over the namespace prefixes are within scope of this
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   325
     *         {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   326
     *
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   327
     * @since 1.6, SAAJ 1.2
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   328
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   329
    public Iterator getVisibleNamespacePrefixes();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   330
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   331
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   332
     * Creates a {@code QName} whose namespace URI is the one associated
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   333
     * with the parameter, {@code prefix}, in the context of this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   334
     * {@code SOAPElement}. The remaining elements of the new
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   335
     * {@code QName} are taken directly from the parameters,
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   336
     * {@code localName} and {@code prefix}.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   337
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   338
     * @param localName
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   339
     *          a {@code String} containing the local part of the name.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   340
     * @param prefix
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   341
     *          a {@code String} containing the prefix for the name.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   342
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   343
     * @return a {@code QName} with the specified {@code localName}
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   344
     *          and {@code prefix}, and with a namespace that is associated
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   345
     *          with the {@code prefix} in the context of this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   346
     *          {@code SOAPElement}. This namespace will be the same as
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   347
     *          the one that would be returned by
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   348
     *          <code>{@link #getNamespaceURI(String)}</code> if it were given
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   349
     *          {@code prefix} as it's parameter.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   350
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   351
     * @exception SOAPException if the {@code QName} cannot be created.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   352
     *
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   353
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   354
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   355
    public QName createQName(String localName, String prefix)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   356
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   357
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   358
     * Returns the name of this {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   359
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   360
     * @return a {@code Name} object with the name of this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   361
     *         {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   362
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   363
    public Name getElementName();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   364
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   365
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   366
     * Returns the qname of this {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   367
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   368
     * @return a {@code QName} object with the qname of this
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   369
     *         {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   370
     * @see SOAPElement#getElementName()
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   371
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   372
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   373
    public QName getElementQName();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   374
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   375
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   376
    * Changes the name of this {@code Element} to {@code newName} if
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   377
    * possible. SOAP Defined elements such as SOAPEnvelope, SOAPHeader, SOAPBody
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   378
    * etc. cannot have their names changed using this method. Any attempt to do
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   379
    * so will result in a  SOAPException being thrown.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   380
    *<P>
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   381
    * Callers should not rely on the element instance being renamed as is.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   382
    * Implementations could end up copying the content of the
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   383
    * {@code SOAPElement} to a renamed instance.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   384
    *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   385
    * @param newName the new name for the {@code Element}.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   386
    *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   387
    * @exception SOAPException if changing the name of this {@code Element}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   388
    *                          is not allowed.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   389
    * @return The renamed Node
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   390
    *
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   391
    * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   392
    */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   393
   public SOAPElement setElementQName(QName newName) throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   394
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   395
   /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   396
     * Removes the attribute with the specified name.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   397
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   398
     * @param name the {@code Name} object with the name of the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   399
     *        attribute to be removed
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   400
     * @return {@code true} if the attribute was
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   401
     *         removed successfully; {@code false} if it was not
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   402
     * @see SOAPElement#removeAttribute(javax.xml.namespace.QName)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   403
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   404
    public boolean removeAttribute(Name name);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   405
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   406
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   407
     * Removes the attribute with the specified qname.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   408
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   409
     * @param qname the {@code QName} object with the qname of the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   410
     *        attribute to be removed
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   411
     * @return {@code true} if the attribute was
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   412
     *         removed successfully; {@code false} if it was not
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   413
     * @see SOAPElement#removeAttribute(Name)
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   414
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   415
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   416
    public boolean removeAttribute(QName qname);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   417
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   418
    /**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   419
     * Removes the namespace declaration corresponding to the given prefix.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   420
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   421
     * @param prefix a {@code String} giving the prefix for which
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   422
     *        to search
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   423
     * @return {@code true} if the namespace declaration was
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   424
     *         removed successfully; {@code false} if it was not
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   425
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   426
    public boolean removeNamespaceDeclaration(String prefix);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   427
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   428
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   429
     * Returns an {@code Iterator} over all the immediate child
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   430
     * {@link Node}s of this element. This includes {@code javax.xml.soap.Text}
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   431
     * objects as well as {@code SOAPElement} objects.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   432
     * <p>
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   433
     * Calling this method may cause child {@code Element},
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   434
     * {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   435
     * replaced by {@code SOAPElement}, {@code SOAPHeaderElement},
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   436
     * {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   437
     * appropriate for the type of this parent node. As a result the calling
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   438
     * application must treat any existing references to these child nodes that
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   439
     * have been obtained through DOM APIs as invalid and either discard them or
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   440
     * refresh them with the values returned by this {@code Iterator}. This
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   441
     * behavior can be avoided by calling the equivalent DOM APIs. See
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   442
     * {@link <a HREF="package-summary.html#package_description">javax.xml.soap</a>}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   443
     * for more details.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   444
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   445
     * @return an iterator with the content of this {@code SOAPElement}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   446
     *         object
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   447
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   448
    public Iterator getChildElements();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   449
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   450
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   451
     * Returns an {@code Iterator} over all the immediate child
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   452
     * {@link Node}s of this element with the specified name. All of these
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   453
     * children will be {@code SOAPElement} nodes.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   454
     * <p>
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   455
     * Calling this method may cause child {@code Element},
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   456
     * {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   457
     * replaced by {@code SOAPElement}, {@code SOAPHeaderElement},
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   458
     * {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   459
     * appropriate for the type of this parent node. As a result the calling
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   460
     * application must treat any existing references to these child nodes that
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   461
     * have been obtained through DOM APIs as invalid and either discard them or
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   462
     * refresh them with the values returned by this {@code Iterator}. This
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   463
     * behavior can be avoided by calling the equivalent DOM APIs. See
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   464
     * {@link <a HREF="package-summary.html#package_description">javax.xml.soap</a>}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   465
     * for more details.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   466
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   467
     * @param name a {@code Name} object with the name of the child
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   468
     *        elements to be returned
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   469
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   470
     * @return an {@code Iterator} object over all the elements
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   471
     *         in this {@code SOAPElement} object with the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   472
     *         specified name
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   473
     * @see SOAPElement#getChildElements(javax.xml.namespace.QName)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   474
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   475
    public Iterator getChildElements(Name name);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   476
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   477
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   478
     * Returns an {@code Iterator} over all the immediate child
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   479
     * {@link Node}s of this element with the specified qname. All of these
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   480
     * children will be {@code SOAPElement} nodes.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   481
     * <p>
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   482
     * Calling this method may cause child {@code Element},
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   483
     * {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   484
     * replaced by {@code SOAPElement}, {@code SOAPHeaderElement},
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   485
     * {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   486
     * appropriate for the type of this parent node. As a result the calling
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   487
     * application must treat any existing references to these child nodes that
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   488
     * have been obtained through DOM APIs as invalid and either discard them or
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   489
     * refresh them with the values returned by this {@code Iterator}. This
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   490
     * behavior can be avoided by calling the equivalent DOM APIs. See
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   491
     * {@link <a HREF="package-summary.html#package_description">javax.xml.soap</a>}
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   492
     * for more details.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   493
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   494
     * @param qname a {@code QName} object with the qname of the child
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   495
     *        elements to be returned
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   496
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   497
     * @return an {@code Iterator} object over all the elements
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   498
     *         in this {@code SOAPElement} object with the
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   499
     *         specified qname
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   500
     * @see SOAPElement#getChildElements(Name)
25840
c2002453eec3 8047724: @since tag cleanup in jaxws
henryjen
parents: 22679
diff changeset
   501
     * @since 1.6, SAAJ 1.3
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   502
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   503
    public Iterator getChildElements(QName qname);
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   504
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   505
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   506
     * Sets the encoding style for this {@code SOAPElement} object
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   507
     * to one specified.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   508
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   509
     * @param encodingStyle a {@code String} giving the encoding style
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   510
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   511
     * @exception IllegalArgumentException if there was a problem in the
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   512
     *            encoding style being set.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   513
     * @exception SOAPException if setting the encodingStyle is invalid for this SOAPElement.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   514
     * @see #getEncodingStyle
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   515
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   516
    public void setEncodingStyle(String encodingStyle)
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   517
        throws SOAPException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   518
    /**
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   519
     * Returns the encoding style for this {@code SOAPElement} object.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   520
     *
30005
b2f720a258c4 8077332: tidy warnings from javax/xml
avstepan
parents: 28326
diff changeset
   521
     * @return a {@code String} giving the encoding style
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   522
     *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   523
     * @see #setEncodingStyle
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   524
     */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   525
    public String getEncodingStyle();
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   526
}