< prev index next >
jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -275,11 +275,11 @@
* attribute.
*
* @see SOAPElement#getAllAttributesAsQNames()
* @return an iterator over the names of the attributes
*/
- public Iterator getAllAttributes();
+ public Iterator<Name> getAllAttributes();
/**
* Returns an {@code Iterator} over all of the attributes
* in this {@code SOAPElement} as {@code QName} objects.
* The iterator can be used to get the attribute QName, which can then
@@ -288,11 +288,11 @@
*
* @return an iterator over the QNames of the attributes
* @see SOAPElement#getAllAttributes()
* @since 1.6, SAAJ 1.3
*/
- public Iterator getAllAttributesAsQNames();
+ public Iterator<QName> getAllAttributesAsQNames();
/**
* Returns the URI of the namespace that has the given prefix.
*
@@ -310,11 +310,11 @@
* {@code getNamespaceURI} to retrieve the URI of each namespace.
*
* @return an iterator over the namespace prefixes in this
* {@code SOAPElement} object
*/
- public Iterator getNamespacePrefixes();
+ public Iterator<String> getNamespacePrefixes();
/**
* Returns an {@code Iterator} over the namespace prefix
* {@code String}s visible to this element. The prefixes returned by
* this iterator can be passed to the method
@@ -323,11 +323,11 @@
* @return an iterator over the namespace prefixes are within scope of this
* {@code SOAPElement} object
*
* @since 1.6, SAAJ 1.2
*/
- public Iterator getVisibleNamespacePrefixes();
+ public Iterator<String> getVisibleNamespacePrefixes();
/**
* Creates a {@code QName} whose namespace URI is the one associated
* with the parameter, {@code prefix}, in the context of this
* {@code SOAPElement}. The remaining elements of the new
@@ -427,11 +427,11 @@
/**
* Returns an {@code Iterator} over all the immediate child
* {@link Node}s of this element. This includes {@code javax.xml.soap.Text}
* objects as well as {@code SOAPElement} objects.
* <p>
- * Calling this method may cause child {@code Element},
+ * Calling this method must cause child {@code Element},
* {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be
* replaced by {@code SOAPElement}, {@code SOAPHeaderElement},
* {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as
* appropriate for the type of this parent node. As a result the calling
* application must treat any existing references to these child nodes that
@@ -442,18 +442,18 @@
* for more details.
*
* @return an iterator with the content of this {@code SOAPElement}
* object
*/
- public Iterator getChildElements();
+ public Iterator<Node> getChildElements();
/**
* Returns an {@code Iterator} over all the immediate child
* {@link Node}s of this element with the specified name. All of these
* children will be {@code SOAPElement} nodes.
* <p>
- * Calling this method may cause child {@code Element},
+ * Calling this method must cause child {@code Element},
* {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be
* replaced by {@code SOAPElement}, {@code SOAPHeaderElement},
* {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as
* appropriate for the type of this parent node. As a result the calling
* application must treat any existing references to these child nodes that
@@ -469,18 +469,18 @@
* @return an {@code Iterator} object over all the elements
* in this {@code SOAPElement} object with the
* specified name
* @see SOAPElement#getChildElements(javax.xml.namespace.QName)
*/
- public Iterator getChildElements(Name name);
+ public Iterator<Node> getChildElements(Name name);
/**
* Returns an {@code Iterator} over all the immediate child
* {@link Node}s of this element with the specified qname. All of these
* children will be {@code SOAPElement} nodes.
* <p>
- * Calling this method may cause child {@code Element},
+ * Calling this method must cause child {@code Element},
* {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be
* replaced by {@code SOAPElement}, {@code SOAPHeaderElement},
* {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as
* appropriate for the type of this parent node. As a result the calling
* application must treat any existing references to these child nodes that
@@ -497,11 +497,11 @@
* in this {@code SOAPElement} object with the
* specified qname
* @see SOAPElement#getChildElements(Name)
* @since 1.6, SAAJ 1.3
*/
- public Iterator getChildElements(QName qname);
+ public Iterator<Node> getChildElements(QName qname);
/**
* Sets the encoding style for this {@code SOAPElement} object
* to one specified.
*
< prev index next >