--- old/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java 2017-05-03 18:06:16.095094248 +0300 +++ new/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java 2017-05-03 18:06:15.975094251 +0300 @@ -1,5 +1,5 @@ /* - * 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 @@ -277,7 +277,7 @@ * @see SOAPElement#getAllAttributesAsQNames() * @return an iterator over the names of the attributes */ - public Iterator getAllAttributes(); + public Iterator getAllAttributes(); /** * Returns an {@code Iterator} over all of the attributes @@ -290,7 +290,7 @@ * @see SOAPElement#getAllAttributes() * @since 1.6, SAAJ 1.3 */ - public Iterator getAllAttributesAsQNames(); + public Iterator getAllAttributesAsQNames(); /** @@ -312,7 +312,7 @@ * @return an iterator over the namespace prefixes in this * {@code SOAPElement} object */ - public Iterator getNamespacePrefixes(); + public Iterator getNamespacePrefixes(); /** * Returns an {@code Iterator} over the namespace prefix @@ -325,7 +325,7 @@ * * @since 1.6, SAAJ 1.2 */ - public Iterator getVisibleNamespacePrefixes(); + public Iterator getVisibleNamespacePrefixes(); /** * Creates a {@code QName} whose namespace URI is the one associated @@ -429,7 +429,7 @@ * {@link Node}s of this element. This includes {@code javax.xml.soap.Text} * objects as well as {@code SOAPElement} objects. *

- * 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 @@ -444,14 +444,14 @@ * @return an iterator with the content of this {@code SOAPElement} * object */ - public Iterator getChildElements(); + public Iterator 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. *

- * 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 @@ -471,14 +471,14 @@ * specified name * @see SOAPElement#getChildElements(javax.xml.namespace.QName) */ - public Iterator getChildElements(Name name); + public Iterator 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. *

- * 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 @@ -499,7 +499,7 @@ * @see SOAPElement#getChildElements(Name) * @since 1.6, SAAJ 1.3 */ - public Iterator getChildElements(QName qname); + public Iterator getChildElements(QName qname); /** * Sets the encoding style for this {@code SOAPElement} object