Xalan-C++ API Reference 1.12.0
xalanc::XalanQNameByReference Class Reference

#include <xalanc/XPath/XalanQNameByReference.hpp>

Inheritance diagram for xalanc::XalanQNameByReference:
[legend]
Collaboration diagram for xalanc::XalanQNameByReference:
[legend]

Public Member Functions

 XalanQNameByReference ()
 Construct an empty XalanQNameByReference.
 XalanQNameByReference (const XalanDOMString &theNamespace, const XalanDOMString &theLocalPart)
 Construct a XalanQNameByReference, with the supplied namespace and local part.
 XalanQNameByReference (const XalanDOMString &theLocalPart)
 Construct a XalanQNameByReference, with the supplied local part.
 XalanQNameByReference (const XalanQName &theQName)
 Construct a XalanQNameByReference, from the supplied XalanQName.
virtual ~XalanQNameByReference ()
virtual const XalanDOMStringgetLocalPart () const
 Retrieve the local part of qualified name.
void setLocalPart (const XalanDOMString &theLocalPart)
 Set the local part of qualified name.
virtual const XalanDOMStringgetNamespace () const
 Retrieve the namespace of qualified name.
void setNamespace (const XalanDOMString &theNamespace)
 Set the Namespace URI of qualified name.
void clear ()
 Clear the instance.
Public Member Functions inherited from xalanc::XalanQName
 XalanQName ()
 Construct an empty XalanQName.
virtual ~XalanQName ()
 XalanQName (const XalanQName &)
bool isValid () const
 Determine if the qualified name is valid.
bool isEmpty () const
 Whether the qualified name is empty.
bool equals (const XalanQName &theRHS) const
 Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg.
XalanDOMStringformat (XalanDOMString &theString) const
 Format the QName using the notation "{namespace-uri}local-part" or "local-part" if the namespace URI is empty.
size_t hash () const

Additional Inherited Members

Public Types inherited from xalanc::XalanQName
typedef XalanDeque< NameSpace, ConstructWithMemoryManagerTraits< NameSpace > > NamespaceVectorType
typedef XalanDeque< NamespaceVectorType, ConstructWithMemoryManagerTraits< NamespaceVectorType > > NamespacesStackType
Static Public Member Functions inherited from xalanc::XalanQName
static const XalanDOMStringgetNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a vector of namespaces.
static const XalanDOMStringgetNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a stack of namespace vectors.
static const XalanDOMStringgetNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMChar *prefix)
static const XalanDOMStringgetNamespaceForPrefix (NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a range of iterators.
static const XalanDOMStringgetPrefixForNamespace (const NamespaceVectorType &namespaces, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a vector of namespaces.
static const XalanDOMStringgetNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMChar *prefix)
static const XalanDOMStringgetPrefixForNamespace (const NamespacesStackType &nsStack, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a stack of namespace vectors.
static const XalanDOMStringgetPrefixForNamespace (NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a range of iterators.
static const XalanDOMStringgetNamespaceForPrefix (NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMChar *prefix)
static bool isValidNCName (const XalanDOMString &theNCName)
 Determine if the string supplied satisfies the grammar for an XML NCName.
static bool isValidNCName (const XalanDOMChar *theNCName, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Determine if the string supplied satisfies the grammar for an XML NCName.
static bool isValidQName (const XalanDOMString &theQName)
 Determine if the string supplied satisfies the grammar for an XML QName.
static bool isValidQName (const XalanDOMChar *theQName, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Determine if the string supplied satisfies the grammar for an XML QName.
Static Protected Attributes inherited from xalanc::XalanQName
static const XalanDOMString s_emptyString

Detailed Description

Definition at line 37 of file XalanQNameByReference.hpp.

Constructor & Destructor Documentation

◆ XalanQNameByReference() [1/4]

xalanc::XalanQNameByReference::XalanQNameByReference ( )
explicit

Construct an empty XalanQNameByReference.

◆ XalanQNameByReference() [2/4]

xalanc::XalanQNameByReference::XalanQNameByReference ( const XalanDOMString & theNamespace,
const XalanDOMString & theLocalPart )

Construct a XalanQNameByReference, with the supplied namespace and local part.

The instance keeps only a reference to the string, to avoid making a copy.

Parameters
theNamespacenamespace string
theLocalPartlocal part string

◆ XalanQNameByReference() [3/4]

xalanc::XalanQNameByReference::XalanQNameByReference ( const XalanDOMString & theLocalPart)

Construct a XalanQNameByReference, with the supplied local part.

The instance keeps only a reference to the string, to avoid making a copy.

Parameters
theLocalPartlocal part string

◆ XalanQNameByReference() [4/4]

xalanc::XalanQNameByReference::XalanQNameByReference ( const XalanQName & theQName)

Construct a XalanQNameByReference, from the supplied XalanQName.

The instance keeps only a reference to the string, to avoid making a copy.

Parameters
theQNameThe source QName

References xalanc::XalanQName::XalanQName().

◆ ~XalanQNameByReference()

virtual xalanc::XalanQNameByReference::~XalanQNameByReference ( )
virtual

Member Function Documentation

◆ clear()

void xalanc::XalanQNameByReference::clear ( )
inline

Clear the instance.

Definition at line 121 of file XalanQNameByReference.hpp.

References xalanc::XalanQName::s_emptyString.

◆ getLocalPart()

virtual const XalanDOMString & xalanc::XalanQNameByReference::getLocalPart ( ) const
virtual

Retrieve the local part of qualified name.

Returns
local part string

Implements xalanc::XalanQName.

◆ getNamespace()

virtual const XalanDOMString & xalanc::XalanQNameByReference::getNamespace ( ) const
virtual

Retrieve the namespace of qualified name.

Returns
namespace string

Implements xalanc::XalanQName.

◆ setLocalPart()

void xalanc::XalanQNameByReference::setLocalPart ( const XalanDOMString & theLocalPart)
inline

Set the local part of qualified name.

Parameters
theLocalPartlocal part string

Definition at line 93 of file XalanQNameByReference.hpp.

◆ setNamespace()

void xalanc::XalanQNameByReference::setNamespace ( const XalanDOMString & theNamespace)
inline

Set the Namespace URI of qualified name.

Parameters
theLocalPartlocal part string

Definition at line 112 of file XalanQNameByReference.hpp.


The documentation for this class was generated from the following file: