com.sun.xml.internal.messaging.saaj.soap.impl.ElementFactory Java Examples

The following examples show how to use com.sun.xml.internal.messaging.saaj.soap.impl.ElementFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SOAPFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}
 
Example #2
Source File: SOAPDocumentImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void registerChildNodes(Node parentNode, boolean deep) {
    if (parentNode.getUserData(SAAJ_NODE) == null) {
        if (parentNode instanceof Element) {
            ElementFactory.createElement(this, (Element) parentNode);
        } else if (parentNode instanceof CharacterData) {
            switch (parentNode.getNodeType()) {
                case CDATA_SECTION_NODE:
                    new CDATAImpl(this, (CharacterData) parentNode);
                    break;
                case COMMENT_NODE:
                    new SOAPCommentImpl(this, (CharacterData) parentNode);
                    break;
                case TEXT_NODE:
                    new SOAPTextImpl(this, (CharacterData) parentNode);
                    break;
            }
        }
    }
    if (deep) {
        NodeList nodeList = parentNode.getChildNodes();
        for (int i = 0; i < nodeList.getLength(); i++) {
            Node nextChild = nodeList.item(i);
            registerChildNodes(nextChild, true);
        }
    }
}
 
Example #3
Source File: SOAPFactoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}
 
Example #4
Source File: SOAPFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #5
Source File: SOAPDocumentImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Element createElement(String tagName) throws DOMException {
    return ElementFactory.createElement(
        this,
        NameImpl.getLocalNameFromTagName(tagName),
        NameImpl.getPrefixFromTagName(tagName),
        null);
}
 
Example #6
Source File: SOAPDocumentImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Element createElementNS(String namespaceURI, String qualifiedName)
    throws DOMException {
    return ElementFactory.createElement(
        this,
        NameImpl.getLocalNameFromTagName(qualifiedName),
        NameImpl.getPrefixFromTagName(qualifiedName),
        namespaceURI);
}
 
Example #7
Source File: SOAPFactoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(String tagName) throws SOAPException {
     if (tagName == null) {
         log.log(
             Level.SEVERE,"SAAJ0567.soap.null.input",
             new Object[] {"tagName","SOAPFactory.createElement"});
         throw new SOAPException("Null tagName argument passed to createElement");
     }
    return ElementFactory.createElement(createDocument(),
                    NameImpl.createFromTagName(tagName));
}
 
Example #8
Source File: SOAPFactoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #9
Source File: SOAPFactoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #10
Source File: SOAPFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #11
Source File: SOAPFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(String tagName) throws SOAPException {
     if (tagName == null) {
         log.log(
             Level.SEVERE,"SAAJ0567.soap.null.input",
             new Object[] {"tagName","SOAPFactory.createElement"});
         throw new SOAPException("Null tagName argument passed to createElement");
     }
    return ElementFactory.createElement(createDocument(),
                    NameImpl.createFromTagName(tagName));
}
 
Example #12
Source File: SOAPFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #13
Source File: SOAPFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #14
Source File: SOAPFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}
 
Example #15
Source File: SOAPFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(String tagName) throws SOAPException {
     if (tagName == null) {
         log.log(
             Level.SEVERE,"SAAJ0567.soap.null.input",
             new Object[] {"tagName","SOAPFactory.createElement"});
         throw new SOAPException("Null tagName argument passed to createElement");
     }
    return ElementFactory.createElement(createDocument(),
                    NameImpl.createFromTagName(tagName));
}
 
Example #16
Source File: SOAPFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #17
Source File: SOAPFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #18
Source File: SOAPFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}
 
Example #19
Source File: SOAPFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #20
Source File: SOAPFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #21
Source File: SOAPFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #22
Source File: SOAPFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}
 
Example #23
Source File: SOAPFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(String tagName) throws SOAPException {
     if (tagName == null) {
         log.log(
             Level.SEVERE,"SAAJ0567.soap.null.input",
             new Object[] {"tagName","SOAPFactory.createElement"});
         throw new SOAPException("Null tagName argument passed to createElement");
     }
    return ElementFactory.createElement(createDocument(),
                    NameImpl.createFromTagName(tagName));
}
 
Example #24
Source File: SOAPFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(Name name) throws SOAPException {
    // @since SAAJ 1.3
    // If the Name was null it would cause a NullPointerException in earlier release
    if (name == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"name","SOAPFactory.createElement"});
        throw new SOAPException("Null name argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), name);
}
 
Example #25
Source File: SOAPFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #26
Source File: SOAPFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}
 
Example #27
Source File: SOAPFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(String tagName) throws SOAPException {
     if (tagName == null) {
         log.log(
             Level.SEVERE,"SAAJ0567.soap.null.input",
             new Object[] {"tagName","SOAPFactory.createElement"});
         throw new SOAPException("Null tagName argument passed to createElement");
     }
    return ElementFactory.createElement(createDocument(),
                    NameImpl.createFromTagName(tagName));
}
 
Example #28
Source File: SOAPFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(String tagName) throws SOAPException {
     if (tagName == null) {
         log.log(
             Level.SEVERE,"SAAJ0567.soap.null.input",
             new Object[] {"tagName","SOAPFactory.createElement"});
         throw new SOAPException("Null tagName argument passed to createElement");
     }
    return ElementFactory.createElement(createDocument(),
                    NameImpl.createFromTagName(tagName));
}
 
Example #29
Source File: SOAPFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(QName qname) throws SOAPException {
    if (qname == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"qname","SOAPFactory.createElement"});
        throw new SOAPException("Null qname argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(),qname);
}
 
Example #30
Source File: SOAPFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public SOAPElement createElement(
    String localName,
    String prefix,
    String uri)  throws SOAPException {

    // @since SAAJ 1.3
    // if prefix !=null but localName== null then in earlier releases it would create
    // a Qualified Name  <prefix>:null which is not meaningful
    if (localName == null) {
        log.log(Level.SEVERE,"SAAJ0567.soap.null.input",
                    new Object[] {"localName","SOAPFactory.createElement"});
        throw new SOAPException("Null localName argument passed to createElement");
    }
    return ElementFactory.createElement(createDocument(), localName, prefix, uri);
}