< prev index next >

jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElementFactory.java

Print this page


   1 /*
   2  * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  85      *            {@code SOAPElement} object
  86      *
  87      * @deprecated Use
  88      * javax.xml.soap.SOAPFactory.createElement(String localName) instead
  89      *
  90      * @see javax.xml.soap.SOAPFactory#createElement(java.lang.String)
  91      */
  92     public SOAPElement create(String localName) throws SOAPException {
  93         return soapFactory.createElement(localName);
  94     }
  95 
  96     /**
  97      * Create a new {@code SOAPElement} object with the given
  98      * local name, prefix and uri.
  99      *
 100      * @param localName a {@code String} giving the local name
 101      *                  for the new element
 102      * @param prefix the prefix for this {@code SOAPElement}
 103      * @param uri a {@code String} giving the URI of the
 104      *            namespace to which the new element belongs



 105      *
 106      * @exception SOAPException if there is an error in creating the
 107      *            {@code SOAPElement} object
 108      *
 109      * @deprecated Use
 110      * javax.xml.soap.SOAPFactory.createElement(String localName,
 111      *                      String prefix,
 112      *                      String uri)
 113      * instead
 114      *
 115      * @see javax.xml.soap.SOAPFactory#createElement(java.lang.String, java.lang.String, java.lang.String)
 116      */
 117     public SOAPElement create(String localName, String prefix, String uri)
 118         throws SOAPException {
 119         return soapFactory.createElement(localName, prefix, uri);
 120     }
 121 
 122     /**
 123      * Creates a new instance of {@code SOAPElementFactory}.
 124      *
   1 /*
   2  * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  85      *            {@code SOAPElement} object
  86      *
  87      * @deprecated Use
  88      * javax.xml.soap.SOAPFactory.createElement(String localName) instead
  89      *
  90      * @see javax.xml.soap.SOAPFactory#createElement(java.lang.String)
  91      */
  92     public SOAPElement create(String localName) throws SOAPException {
  93         return soapFactory.createElement(localName);
  94     }
  95 
  96     /**
  97      * Create a new {@code SOAPElement} object with the given
  98      * local name, prefix and uri.
  99      *
 100      * @param localName a {@code String} giving the local name
 101      *                  for the new element
 102      * @param prefix the prefix for this {@code SOAPElement}
 103      * @param uri a {@code String} giving the URI of the
 104      *            namespace to which the new element belongs
 105      *
 106      * @return the new {@code SOAPElement} object that was
 107      *         created
 108      *
 109      * @exception SOAPException if there is an error in creating the
 110      *            {@code SOAPElement} object
 111      *
 112      * @deprecated Use
 113      * javax.xml.soap.SOAPFactory.createElement(String localName,
 114      *                      String prefix,
 115      *                      String uri)
 116      * instead
 117      *
 118      * @see javax.xml.soap.SOAPFactory#createElement(java.lang.String, java.lang.String, java.lang.String)
 119      */
 120     public SOAPElement create(String localName, String prefix, String uri)
 121         throws SOAPException {
 122         return soapFactory.createElement(localName, prefix, uri);
 123     }
 124 
 125     /**
 126      * Creates a new instance of {@code SOAPElementFactory}.
 127      *
< prev index next >