Xalan-C++ API Reference  1.12.0
Public Member Functions | Static Public Member Functions | List of all members
xalanc::NameSpace Class Reference

A representation of a namespace. More...

#include <xalanc/XPath/NameSpace.hpp>

Public Member Functions

 NameSpace (MemoryManager &theManager)
 
 NameSpace (const XalanDOMString &prefix, const XalanDOMString &uri, MemoryManager &theManager)
 Construct a namespace for placement on the result tree namespace stack. More...
 
 NameSpace (const NameSpace &other, MemoryManager &theManager)
 
 ~NameSpace ()
 
const XalanDOMStringgetPrefix () const
 Retrieve the prefix for namespace. More...
 
void setPrefix (const XalanDOMString &prefix)
 Set the prefix for namespace. More...
 
const XalanDOMStringgetURI () const
 Retrieve the URI for namespace. More...
 
void setURI (const XalanDOMString &uri)
 Set the URI for namespace. More...
 
void setURI (const XalanDOMChar *uri)
 Set the URI for namespace. More...
 
void setURI (const XalanDOMChar *uri, XalanDOMString::size_type len)
 Set the URI for namespace. More...
 
bool empty () const
 
void clear ()
 
bool operator== (const NameSpace &theRHS) const
 Equality operator. More...
 

Static Public Member Functions

static NameSpacecreate (const XalanDOMString &prefix, const XalanDOMString &uri, MemoryManager &theManager)
 

Detailed Description

A representation of a namespace.

One of these will be pushed on the namespace stack for each element.

Definition at line 40 of file NameSpace.hpp.

Constructor & Destructor Documentation

◆ NameSpace() [1/3]

xalanc::NameSpace::NameSpace ( MemoryManager &  theManager)
inlineexplicit

Definition at line 45 of file NameSpace.hpp.

◆ NameSpace() [2/3]

xalanc::NameSpace::NameSpace ( const XalanDOMString prefix,
const XalanDOMString uri,
MemoryManager &  theManager 
)
inline

Construct a namespace for placement on the result tree namespace stack.

Parameters
prefixnamespace prefix
uriURI of namespace

Definition at line 58 of file NameSpace.hpp.

◆ NameSpace() [3/3]

xalanc::NameSpace::NameSpace ( const NameSpace other,
MemoryManager &  theManager 
)
inline

Definition at line 88 of file NameSpace.hpp.

◆ ~NameSpace()

xalanc::NameSpace::~NameSpace ( )
inline

Definition at line 96 of file NameSpace.hpp.

Member Function Documentation

◆ clear()

void xalanc::NameSpace::clear ( )
inline

Definition at line 180 of file NameSpace.hpp.

◆ create()

static NameSpace* xalanc::NameSpace::create ( const XalanDOMString prefix,
const XalanDOMString uri,
MemoryManager &  theManager 
)
inlinestatic

◆ empty()

bool xalanc::NameSpace::empty ( ) const
inline

Definition at line 174 of file NameSpace.hpp.

◆ getPrefix()

const XalanDOMString& xalanc::NameSpace::getPrefix ( ) const
inline

Retrieve the prefix for namespace.

Returns
prefix string

Definition at line 106 of file NameSpace.hpp.

◆ getURI()

const XalanDOMString& xalanc::NameSpace::getURI ( ) const
inline

Retrieve the URI for namespace.

Returns
URI string

Definition at line 128 of file NameSpace.hpp.

◆ operator==()

bool xalanc::NameSpace::operator== ( const NameSpace theRHS) const
inline

Equality operator.

Parameters
theRHSnamespace to compare

Definition at line 193 of file NameSpace.hpp.

References xalanc::equals().

◆ setPrefix()

void xalanc::NameSpace::setPrefix ( const XalanDOMString prefix)
inline

Set the prefix for namespace.

Parameters
prefixThe new prefix value

Definition at line 117 of file NameSpace.hpp.

◆ setURI() [1/3]

void xalanc::NameSpace::setURI ( const XalanDOMChar *  uri)
inline

Set the URI for namespace.

Parameters
uriThe new uri value

Definition at line 150 of file NameSpace.hpp.

◆ setURI() [2/3]

void xalanc::NameSpace::setURI ( const XalanDOMChar *  uri,
XalanDOMString::size_type  len 
)
inline

Set the URI for namespace.

Parameters
uriThe new uri value
lenThe length of the uri

Definition at line 164 of file NameSpace.hpp.

◆ setURI() [3/3]

void xalanc::NameSpace::setURI ( const XalanDOMString uri)
inline

Set the URI for namespace.

Parameters
uriThe new uri value

Definition at line 139 of file NameSpace.hpp.


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