zorba::internal::FixedQName

#include <zorba/internal/qname.h>

Inherited from: zorba::diagnostic::QName

A FixedQName is-an diagnostic::QName that has a fixed namespace and prefix, but a variable local-name.

Parameters

QNameTraits A class that contains static NAMESPACE and PREFIX members.
LocalnameType The type to use to store the local-name. Note that this can be either a string type or char const*. If the latter, then it must be guaranteed that the pointed-to C strings will exist for the entire lifetime of this object.

Private Attributes

LocalnameType

localname_

Public Functions

FixedQName(char const *localname)

Constructs a FixedQName.

char const *

localname() const

Gets this QName's local name.

char const *

ns() const

Gets this QName's namespace URI.

char const *

prefix() const

Gets this QName's prefix.

Private Attributes

localname_

LocalnameType localname_

Public Functions

FixedQName

 FixedQName(char const *localname)

Constructs a FixedQName.

Parameters

localname The QName's local-name.

localname

char const * localname() const

Gets this QName's local name.

Returns

Returns said local name.

ns

char const * ns() const

Gets this QName's namespace URI.

Returns

Returns said URI.

prefix

char const * prefix() const

Gets this QName's prefix.

Returns

Returns said prefix.