APIdia Launch Partner
Top Description Methods
javax.xml.stream.events

public Interface Namespace

extends Attribute
Known Direct Implementers
com.sun.xml.internal.stream.events.NamespaceImpl
Imports
javax.xml.namespace.QName

An interface that contains information about a namespace. Namespaces are accessed from a StartElement.
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0
See Also
StartElement

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the NamespaceURI
getNamespaceURI
()

Gets the uri bound to the prefix of this namespace

public String

Returns:

the prefix
getPrefix
()

Gets the prefix, returns "" if this is a default namespace declaration.

public boolean

Returns:

true if this is default namespace, false otherwise
isDefaultNamespaceDeclaration
()

returns true if this attribute declares the default namespace

Inherited from javax.xml.stream.events.Attribute:
getDTDTypegetNamegetValueisSpecified

Method Detail

getNamespaceURIback to summary
public String getNamespaceURI()

Gets the uri bound to the prefix of this namespace

Returns:String

the NamespaceURI

getPrefixback to summary
public String getPrefix()

Gets the prefix, returns "" if this is a default namespace declaration.

Returns:String

the prefix

isDefaultNamespaceDeclarationback to summary
public boolean isDefaultNamespaceDeclaration()

returns true if this attribute declares the default namespace

Returns:boolean

true if this is default namespace, false otherwise