Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Member Functions | List of all members
XalanQNameByReference Class Reference

#include <XalanQNameByReference.hpp>

Inherits XalanQName.

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 XalanDOMString & getLocalPart () const
 Retrieve the local part of qualified name. More...
 
void setLocalPart (const XalanDOMString &theLocalPart)
 Set the local part of qualified name. More...
 
virtual const XalanDOMString & getNamespace () 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 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...
 
XalanDOMString & format (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 XalanQName
typedef XalanDeque< NameSpace, ConstructWithMemoryManagerTraits< NameSpace > > NamespaceVectorType
 
typedef XalanDeque< NamespaceVectorType, ConstructWithMemoryManagerTraits< NamespaceVectorType > > NamespacesStackType
 
- Static Public Member Functions inherited from XalanQName
static const XalanDOMString * getNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a vector of namespaces. More...
 
static const XalanDOMString * getNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a stack of namespace vectors. More...
 
static const XalanDOMString * getNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMChar *prefix)
 
static const XalanDOMString * getNamespaceForPrefix (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 XalanDOMString * getPrefixForNamespace (const NamespaceVectorType &namespaces, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a vector of namespaces. More...
 
static const XalanDOMString * getNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMChar *prefix)
 
static const XalanDOMString * getPrefixForNamespace (const NamespacesStackType &nsStack, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a stack of namespace vectors. More...
 
static const XalanDOMString * getPrefixForNamespace (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 XalanDOMString * getNamespaceForPrefix (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 XalanQName
static const XalanDOMString s_emptyString
 

Detailed Description

Definition at line 37 of file XalanQNameByReference.hpp.

Constructor & Destructor Documentation

◆ XalanQNameByReference() [1/4]

XalanQNameByReference::XalanQNameByReference ( )
explicit

Construct an empty XalanQNameByReference.

◆ XalanQNameByReference() [2/4]

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]

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]

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 XalanQNameByReference::~XalanQNameByReference ( )
virtual

Member Function Documentation

◆ clear()

void XalanQNameByReference::clear ( )
inline

Clear the instance.

Definition at line 121 of file XalanQNameByReference.hpp.

◆ getLocalPart()

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

Retrieve the local part of qualified name.

Returns
local part string

Implements XalanQName.

◆ getNamespace()

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

Retrieve the namespace of qualified name.

Returns
namespace string

Implements XalanQName.

◆ setLocalPart()

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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo