Top Fields Constructors Methods
org.apache.xerces.stax.events

public final Class NamespaceImpl

extends AttributeImpl
implements Namespace
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.Namespace, javax.xml.stream.events.Attribute, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
javax.xml.XMLConstants, javax.xml.namespace.QName, javax.xml.stream.Location, javax.xml.stream.events.Namespace

Author
Lucian Holland
Version
$Id: NamespaceImpl.java 730477 2008-12-31 20:57:07Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
NamespaceImpl(final String prefix, final String namespaceURI, final Location location)

Method Summary

Modifier and TypeMethod and Description
public String
getNamespaceURI()

Implements javax.xml.stream.events.Namespace.getNamespaceURI.

Gets the uri bound to the prefix of this namespace
public String
getPrefix()

Implements javax.xml.stream.events.Namespace.getPrefix.

Gets the prefix, returns "" if this is a default namespace declaration.
public boolean
isDefaultNamespaceDeclaration()

Implements javax.xml.stream.events.Namespace.isDefaultNamespaceDeclaration.

returns true if this attribute declares the default namespace
private static QName

Returns:

A QName for the attribute that declares this namespace.
makeAttributeQName
(String
The prefix for this namespace.
prefix
)

Inherited from org.apache.xerces.stax.events.AttributeImpl:
getDTDTypegetNamegetValueisSpecifiedwriteAsEncodedUnicode

Field Detail

fNamespaceURIback to summary
private final String fNamespaceURI
fPrefixback to summary
private final String fPrefix

Constructor Detail

NamespaceImplback to summary
public NamespaceImpl(final String prefix, final String namespaceURI, final Location location)

Method Detail

getNamespaceURIback to summary
public String getNamespaceURI()

Implements javax.xml.stream.events.Namespace.getNamespaceURI.

Doc from javax.xml.stream.events.Namespace.getNamespaceURI.

Gets the uri bound to the prefix of this namespace

Returns:String

the NamespaceURI

See Also
javax.xml.stream.events.Namespace#getNamespaceURI()
getPrefixback to summary
public String getPrefix()

Implements javax.xml.stream.events.Namespace.getPrefix.

Doc from javax.xml.stream.events.Namespace.getPrefix.

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

Returns:String

the prefix

See Also
javax.xml.stream.events.Namespace#getPrefix()
isDefaultNamespaceDeclarationback to summary
public boolean isDefaultNamespaceDeclaration()

Implements javax.xml.stream.events.Namespace.isDefaultNamespaceDeclaration.

Doc from javax.xml.stream.events.Namespace.isDefaultNamespaceDeclaration.

returns true if this attribute declares the default namespace

Returns:boolean

true if this is default namespace, false otherwise

See Also
javax.xml.stream.events.Namespace#isDefaultNamespaceDeclaration()
makeAttributeQNameback to summary
private static QName makeAttributeQName(String prefix)
Parameters
prefix:String

The prefix for this namespace.

Returns:QName

A QName for the attribute that declares this namespace.