src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementImpl.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2013, 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
--- 1,7 ----
/*
! * Copyright (c) 1997, 2014, 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
*** 49,59 ****
public static final String DSIG_NS = "http://www.w3.org/2000/09/xmldsig#".intern();
public static final String XENC_NS = "http://www.w3.org/2001/04/xmlenc#".intern();
public static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd".intern();
! private AttributeManager encodingStyleAttribute = new AttributeManager();
protected QName elementQName;
protected static final Logger log =
Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN,
--- 49,59 ----
public static final String DSIG_NS = "http://www.w3.org/2000/09/xmldsig#".intern();
public static final String XENC_NS = "http://www.w3.org/2001/04/xmlenc#".intern();
public static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd".intern();
! private transient AttributeManager encodingStyleAttribute = new AttributeManager();
protected QName elementQName;
protected static final Logger log =
Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN,
*** 422,432 ****
--- 422,457 ----
}
}
}
+ Element getFirstChildElement() {
+ Node child = getFirstChild();
+ while (child != null) {
+ if (child instanceof Element) {
+ return ((Element) child);
+ }
+ child = child.getNextSibling();
+ }
+ return null;
+ }
+
protected SOAPElement findChild(NameImpl name) {
+ Node eachChild = getFirstChild();
+ while (eachChild != null) {
+ if (eachChild instanceof SOAPElement) {
+ SOAPElement eachChildSoap = (SOAPElement) eachChild;
+ if (eachChildSoap.getElementName().equals(name)) {
+ return eachChildSoap;
+ }
+ }
+ eachChild = eachChild.getNextSibling();
+ }
+ return null;
+ }
+
+ protected SOAPElement findAndConvertChildElement(NameImpl name) {
Iterator eachChild = getChildElementNodes();
while (eachChild.hasNext()) {
SOAPElement child = (SOAPElement) eachChild.next();
if (child.getElementName().equals(name)) {
return child;