< prev index next >

src/java.xml/share/classes/com/sun/xml/internal/stream/events/NamespaceImpl.java

Print this page




  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
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.stream.events;
  27 
  28 import javax.xml.stream.events.Namespace;
  29 import javax.xml.stream.events.XMLEvent;
  30 import javax.xml.namespace.QName;
  31 
  32 import javax.xml.XMLConstants;
  33 /**
  34  *
  35  * @author  Neeraj Bajaj,K.Venugopal@sun.com  Sun Microsystems.
  36  */
  37 public class NamespaceImpl extends AttributeImpl implements Namespace{
  38 
  39     public NamespaceImpl( ) {
  40         init();
  41     }
  42 
  43     /** Creates a new instance of NamespaceImpl */
  44     public NamespaceImpl(String namespaceURI) {
  45         super(XMLConstants.XMLNS_ATTRIBUTE,XMLConstants.XMLNS_ATTRIBUTE_NS_URI,XMLConstants.DEFAULT_NS_PREFIX,namespaceURI,null);
  46         init();
  47     }
  48 
  49     public NamespaceImpl(String prefix, String namespaceURI){
  50         super(XMLConstants.XMLNS_ATTRIBUTE,XMLConstants.XMLNS_ATTRIBUTE_NS_URI,prefix,namespaceURI,null);
  51         init();
  52     }
  53 
  54     public boolean isDefaultNamespaceDeclaration() {
  55         QName name = this.getName();




  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
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.stream.events;
  27 
  28 import javax.xml.stream.events.Namespace;
  29 import javax.xml.stream.events.XMLEvent;
  30 import javax.xml.namespace.QName;
  31 
  32 import javax.xml.XMLConstants;
  33 /**
  34  *
  35  * @author  Neeraj Bajaj,K Venugopal 
  36  */
  37 public class NamespaceImpl extends AttributeImpl implements Namespace{
  38 
  39     public NamespaceImpl( ) {
  40         init();
  41     }
  42 
  43     /** Creates a new instance of NamespaceImpl */
  44     public NamespaceImpl(String namespaceURI) {
  45         super(XMLConstants.XMLNS_ATTRIBUTE,XMLConstants.XMLNS_ATTRIBUTE_NS_URI,XMLConstants.DEFAULT_NS_PREFIX,namespaceURI,null);
  46         init();
  47     }
  48 
  49     public NamespaceImpl(String prefix, String namespaceURI){
  50         super(XMLConstants.XMLNS_ATTRIBUTE,XMLConstants.XMLNS_ATTRIBUTE_NS_URI,prefix,namespaceURI,null);
  51         init();
  52     }
  53 
  54     public boolean isDefaultNamespaceDeclaration() {
  55         QName name = this.getName();


< prev index next >