Java Code Examples for com.sun.xml.internal.messaging.saaj.soap.impl.ElementFactory#createElement()
The following examples show how to use
com.sun.xml.internal.messaging.saaj.soap.impl.ElementFactory#createElement() .
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: SOAPDocumentImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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 2
Source File: SOAPFactoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 3
Source File: SOAPDocumentImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException { return ElementFactory.createElement( this, NameImpl.getLocalNameFromTagName(qualifiedName), NameImpl.getPrefixFromTagName(qualifiedName), namespaceURI); }
Example 4
Source File: SOAPFactoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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: SOAPFactoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 6
Source File: SOAPFactoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override 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 7
Source File: SOAPFactoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 8
Source File: SOAPFactoryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 10
Source File: SOAPFactoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 11
Source File: SOAPFactoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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-jdk8u with GNU General Public License v2.0 | 5 votes |
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-jdk8u with GNU General Public License v2.0 | 5 votes |
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 14
Source File: SOAPFactoryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 15
Source File: SOAPFactoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 16
Source File: SOAPFactoryImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
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 17
Source File: SOAPFactoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 18
Source File: SOAPFactoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 19
Source File: SOAPFactoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 20
Source File: SOAPFactoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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)); }