Xalan-C++ API Reference  1.12.0
Public Member Functions | List of all members
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. More...
 
 XalanQNameByReference (const XalanDOMString &theNamespace, const XalanDOMString &theLocalPart)
 Construct a XalanQNameByReference, with the supplied namespace and local part. More...
 
 XalanQNameByReference (const XalanDOMString &theLocalPart)
 Construct a XalanQNameByReference, with the supplied local part. More...
 
 XalanQNameByReference (const XalanQName &theQName)
 Construct a XalanQNameByReference, from the supplied XalanQName. More...
 
virtual ~XalanQNameByReference ()
 
virtual const XalanDOMStringgetLocalPart () const
 Retrieve the local part of qualified name. More...
 
void setLocalPart (const XalanDOMString &theLocalPart)
 Set the local part of qualified name. More...
 
virtual const XalanDOMStringgetNamespace () const
 Retrieve the namespace of qualified name. More...
 
void setNamespace (const XalanDOMString &theNamespace)
 Set the Namespace URI of qualified name. More...
 
void clear ()
 Clear the instance. More...
 
- Public Member Functions inherited from xalanc::XalanQName
 XalanQName ()
 Construct an empty XalanQName. More...
 
virtual ~XalanQName ()
 
 XalanQName (const XalanQName &)
 
bool isValid () const
 Determine if the qualified name is valid. More...
 
bool isEmpty () const
 Whether the qualified name is empty. More...
 
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. More...
 
XalanDOMStringformat (XalanDOMString &theString) const
 Format the QName using the notation "{namespace-uri}local-part" or "local-part" if the namespace URI is empty. More...
 
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. More...
 
static const XalanDOMStringgetNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a stack of namespace vectors. More...
 
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. More...
 
static const XalanDOMStringgetPrefixForNamespace (const NamespaceVectorType &namespaces, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a vector of namespaces. More...
 
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. More...
 
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. More...
 
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. More...
 
static bool isValidNCName (const XalanDOMChar *theNCName, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Determine if the string supplied satisfies the grammar for an XML NCName. More...
 
static bool isValidQName (const XalanDOMString &theQName)
 Determine if the string supplied satisfies the grammar for an XML QName. More...
 
static bool isValidQName (const XalanDOMChar *theQName, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Determine if the string supplied satisfies the grammar for an XML QName. More...
 
- 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

◆ ~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.

◆ 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: