Exemple #1
0
  protected SOAPElement circumventBug5034339(SOAPElement element) {

    Name elementName = element.getElementName();
    if (!isNamespaceQualified(elementName)) {
      String prefix = elementName.getPrefix();
      String defaultNamespace = getNamespaceURI(prefix);
      if (defaultNamespace != null) {
        Name newElementName =
            NameImpl.create(elementName.getLocalName(), elementName.getPrefix(), defaultNamespace);
        SOAPElement newElement = createElement(newElementName);
        replaceChild(newElement, element);
        return newElement;
      }
    }
    return element;
  }
Exemple #2
0
 protected static String getAttributeValueFrom(Element element, Name name) {
   return getAttributeValueFrom(
       element, name.getURI(), name.getLocalName(), name.getPrefix(), name.getQualifiedName());
 }
Exemple #3
0
 public ElementImpl(SOAPDocumentImpl ownerDoc, Name name) {
   super(ownerDoc, name.getURI(), name.getQualifiedName(), name.getLocalName());
   elementQName = NameImpl.convertToQName(name);
 }
Exemple #4
0
 public Iterator getChildElements(final Name name) {
   return getChildElements(name.getURI(), name.getLocalName());
 }
Exemple #5
0
 public boolean removeAttribute(Name name) {
   return removeAttribute(name.getURI(), name.getLocalName());
 }