/** * Are there any more elements? * @return true if the iterator has more elements, false otherwise. */ public boolean hasNext() { checkCurrent() ; return (current != null) ; }
/** * Get an iterator containing just child elements. * @param soapElement The parent soap element. * @return The iterator of SOAPElements. */ public static Iterator getChildElements(final SOAPElement soapElement) { return new SOAPElementIterator(soapElement.getChildElements()) ; }
private SOAPHeaderElement getHeaderElement(final SOAPHeader soapHeader, final String uri, final String name) throws SOAPException { if (soapHeader != null) { final Iterator headerIter = SOAPUtil.getChildElements(soapHeader) ; while(headerIter.hasNext()) { final SOAPHeaderElement current = (SOAPHeaderElement)headerIter.next() ; final Name currentName = current.getElementName() ; if ((currentName != null) && match(name, currentName.getLocalName()) && match(uri, currentName.getURI())) { return current ; } } } return null ; }
/** * Are there any more elements? * @return true if the iterator has more elements, false otherwise. */ public boolean hasNext() { checkCurrent() ; return (current != null) ; }
/** * Get an iterator containing just child elements. * @param soapElement The parent soap element. * @return The iterator of SOAPElements. */ public static Iterator getChildElements(final SOAPElement soapElement) { return new SOAPElementIterator(soapElement.getChildElements()) ; }
private SOAPHeaderElement getHeaderElement(final SOAPHeader soapHeader, final String uri, final String name) throws SOAPException { if (soapHeader != null) { final Iterator headerIter = SOAPUtil.getChildElements(soapHeader) ; while(headerIter.hasNext()) { final SOAPHeaderElement current = (SOAPHeaderElement)headerIter.next() ; final Name currentName = current.getElementName() ; if ((currentName != null) && match(name, currentName.getLocalName()) && match(uri, currentName.getURI())) { return current ; } } } return null ; }
/** * Are there any more elements? * @return true if the iterator has more elements, false otherwise. */ public boolean hasNext() { checkCurrent() ; return (current != null) ; }
/** * Get an iterator containing just child elements. * @param soapElement The parent soap element. * @return The iterator of SOAPElements. */ public static Iterator getChildElements(final SOAPElement soapElement) { return new SOAPElementIterator(soapElement.getChildElements()) ; }
/** * Retrieve the first header matching the uri and name. * @param soapEnvelope The soap envelope containing the header. * @param uri The uri of the header element. * @param name The name of the header element. * @return The header element or null if not found. */ private SOAPHeaderElement getHeaderElement(final SOAPEnvelope soapEnvelope, final String uri, final String name) throws SOAPException { final SOAPHeader soapHeader = soapEnvelope.getHeader() ; if (soapHeader != null) { final Iterator headerIter = SOAPUtil.getChildElements(soapHeader) ; while(headerIter.hasNext()) { final SOAPHeaderElement current = (SOAPHeaderElement)headerIter.next() ; final Name currentName = current.getElementName() ; if ((currentName != null) && match(name, currentName.getLocalName()) && match(uri, currentName.getURI())) { return current ; } } } return null ; }
/** * Get the next element. * @return the next element. * @throws NoSuchElementException if there are no more elements. */ public Object next() throws NoSuchElementException { checkCurrent() ; if (current == null) { throw new NoSuchElementException("No more elements in iterator") ; } final Object result = current ; current = null ; return result ; }
/** * Retrieve the first header matching the uri and name. * @param soapEnvelope The soap envelope containing the header. * @param uri The uri of the header element. * @param name The name of the header element. * @return The header element or null if not found. */ private SOAPHeaderElement getHeaderElement(final SOAPEnvelope soapEnvelope, final String uri, final String name) throws SOAPException { final SOAPHeader soapHeader = soapEnvelope.getHeader() ; if (soapHeader != null) { final Iterator headerIter = SOAPUtil.getChildElements(soapHeader) ; while(headerIter.hasNext()) { final SOAPHeaderElement current = (SOAPHeaderElement)headerIter.next() ; final Name currentName = current.getElementName() ; if ((currentName != null) && match(name, currentName.getLocalName()) && match(uri, currentName.getURI())) { return current ; } } } return null ; }
/** * Get the next element. * @return the next element. * @throws NoSuchElementException if there are no more elements. */ public Object next() throws NoSuchElementException { checkCurrent() ; if (current == null) { throw new NoSuchElementException("No more elements in iterator") ; } final Object result = current ; current = null ; return result ; }
/** * Get the next element. * @return the next element. * @throws NoSuchElementException if there are no more elements. */ public Object next() throws NoSuchElementException { checkCurrent() ; if (current == null) { throw new NoSuchElementException("No more elements in iterator") ; } final Object result = current ; current = null ; return result ; }