jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
49 |
49 |
50 public static final String DSIG_NS = "http://www.w3.org/2000/09/xmldsig#".intern(); |
50 public static final String DSIG_NS = "http://www.w3.org/2000/09/xmldsig#".intern(); |
51 public static final String XENC_NS = "http://www.w3.org/2001/04/xmlenc#".intern(); |
51 public static final String XENC_NS = "http://www.w3.org/2001/04/xmlenc#".intern(); |
52 public static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd".intern(); |
52 public static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd".intern(); |
53 |
53 |
54 private AttributeManager encodingStyleAttribute = new AttributeManager(); |
54 private transient AttributeManager encodingStyleAttribute = new AttributeManager(); |
55 |
55 |
56 protected QName elementQName; |
56 protected QName elementQName; |
57 |
57 |
58 protected static final Logger log = |
58 protected static final Logger log = |
59 Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN, |
59 Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN, |
422 } |
422 } |
423 } |
423 } |
424 |
424 |
425 } |
425 } |
426 |
426 |
|
427 Element getFirstChildElement() { |
|
428 Node child = getFirstChild(); |
|
429 while (child != null) { |
|
430 if (child instanceof Element) { |
|
431 return ((Element) child); |
|
432 } |
|
433 child = child.getNextSibling(); |
|
434 } |
|
435 return null; |
|
436 } |
|
437 |
427 protected SOAPElement findChild(NameImpl name) { |
438 protected SOAPElement findChild(NameImpl name) { |
|
439 Node eachChild = getFirstChild(); |
|
440 while (eachChild != null) { |
|
441 if (eachChild instanceof SOAPElement) { |
|
442 SOAPElement eachChildSoap = (SOAPElement) eachChild; |
|
443 if (eachChildSoap.getElementName().equals(name)) { |
|
444 return eachChildSoap; |
|
445 } |
|
446 } |
|
447 eachChild = eachChild.getNextSibling(); |
|
448 } |
|
449 return null; |
|
450 } |
|
451 |
|
452 protected SOAPElement findAndConvertChildElement(NameImpl name) { |
428 Iterator eachChild = getChildElementNodes(); |
453 Iterator eachChild = getChildElementNodes(); |
429 while (eachChild.hasNext()) { |
454 while (eachChild.hasNext()) { |
430 SOAPElement child = (SOAPElement) eachChild.next(); |
455 SOAPElement child = (SOAPElement) eachChild.next(); |
431 if (child.getElementName().equals(name)) { |
456 if (child.getElementName().equals(name)) { |
432 return child; |
457 return child; |