Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ax::QName Class Reference

Qualified name based on "Namespaces in XML" specification. More...

#include <QName.hpp>

List of all members.

Public Methods

 QName ()
 Constructor for the QName. More...

 QName (const std::string &p_qName)
 Constructor QName from qualified name. More...

 QName (const std::string &p_strNsURI, const std::string &p_strLocalPart)
 Constructor for the QName. More...

 QName (const QName &p_qName)
 Constructor for the QName. More...

 QName (const std::string &p_qName, const DOM_Element &p_Elem)
 Constructor for the QName. More...

 ~QName ()
void SetNsURI (const std::string &p_strNsURI)
 Sets the Namespace URI for this QName. More...

void SetLocalPart (const std::string &p_strLocalPart)
 Sets the Local part for this QName. More...

const std::string GetNsURI ()
 Gets the Namespace URI for this QName. More...

const std::string GetLocalPart ()
 Gets the Local part for this QName. More...

bool operator== (const QName &p_qName)
 Indicates whether some other object is "equal to" this QName object. More...

const std::string toString ()
 Returns a string representation of this QName. More...

 QName ()
 Constructor for the QName. More...

 QName (const std::string &p_qName)
 Constructor QName from qualified name. More...

 QName (const std::string &p_strNsURI, const std::string &p_strLocalPart)
 Constructor for the QName. More...

 QName (const QName &p_qName)
 Constructor for the QName. More...

 QName (const std::string &p_qName, const DOM_Element &p_Elem)
 Constructor for the QName. More...

 ~QName ()
void SetNsURI (const std::string &p_strNsURI)
 Sets the Namespace URI for this QName. More...

void SetLocalPart (const std::string &p_strLocalPart)
 Sets the Local part for this QName. More...

const std::string GetNsURI ()
 Gets the Namespace URI for this QName. More...

const std::string GetLocalPart ()
 Gets the Local part for this QName. More...

bool operator== (const QName &p_qName)
 Indicates whether some other object is "equal to" this QName object. More...

const std::string toString ()
 Returns a string representation of this QName. More...


Private Attributes

std::string m_strNsURI
 Namespace URI. More...

std::string m_strLocalPart
 Loaclpart. More...


Friends

bool operator< (const QName &left, const QName &right)
 storage purpose in a std::map we need a get around for this. More...

bool operator< (const QName &left, const QName &right)
 storage purpose in a std::map we need a get around for this. More...


Detailed Description

Qualified name based on "Namespaces in XML" specification.

Qualified name based on "Namespaces in XML" specification. defined as follows:

QName ::= (Prefix ':')? LocalPart
Prefix ::= NCName
LocalPart ::= NCName
NCName ::= (Letter | '_') (NCNameChar)* ; An XML Name, minus the ":"
NCNameChar ::= Letter | Digit | '.' | '-' | '_' etc.

The Prefix provides the namespace prefix part of the qualified name, and must be associated with a namespace URI reference in a namespace declaration. The LocalPart provides the local part of the qualified name. Note that the prefix functions only as a placeholder for a namespace name. Applications should use the namespace name, not the prefix, in constructing names whose scope extends beyond the containing document.

Definition at line 103 of file CVS/Base/QName.hpp.


Constructor & Destructor Documentation

ax::QName::QName ( ) [inline]
 

Constructor for the QName.

Definition at line 107 of file CVS/Base/QName.hpp.

ax::QName::QName ( const std::string & p_qName )
 

Constructor QName from qualified name.

Constructor for the QName

Definition at line 77 of file QName.cpp.

ax::QName::QName ( const std::string & p_strNsURI,
const std::string & p_strLocalPart )
 

Constructor for the QName.

Constructor for the QName

Definition at line 101 of file QName.cpp.

ax::QName::QName ( const QName & p_qName )
 

Constructor for the QName.

Constructor for the QName

Definition at line 112 of file QName.cpp.

ax::QName::QName ( const std::string & p_qName,
const DOM_Element & p_Elem )
 

Constructor for the QName.

Constructor for the QName

Definition at line 122 of file QName.cpp.

ax::QName::~QName ( ) [inline]
 

Definition at line 120 of file CVS/Base/QName.hpp.

ax::QName::QName ( ) [inline]
 

Constructor for the QName.

Definition at line 107 of file QName.hpp.

ax::QName::QName ( const std::string & p_qName )
 

Constructor QName from qualified name.

Constructor for the QName

Definition at line 77 of file QName.cpp.

ax::QName::QName ( const std::string & p_strNsURI,
const std::string & p_strLocalPart )
 

Constructor for the QName.

Constructor for the QName

Definition at line 101 of file QName.cpp.

ax::QName::QName ( const QName & p_qName )
 

Constructor for the QName.

Constructor for the QName

Definition at line 112 of file QName.cpp.

ax::QName::QName ( const std::string & p_qName,
const DOM_Element & p_Elem )
 

Constructor for the QName.

Constructor for the QName

Definition at line 122 of file QName.cpp.

ax::QName::~QName ( ) [inline]
 

Definition at line 120 of file QName.hpp.


Member Function Documentation

const std::string ax::QName::GetLocalPart ( ) [inline]
 

Gets the Local part for this QName.

Definition at line 132 of file QName.hpp.

const std::string ax::QName::GetLocalPart ( ) [inline]
 

Gets the Local part for this QName.

Definition at line 132 of file CVS/Base/QName.hpp.

Referenced by XMLSerializer::QNameToStr(), XMLDeSerializer::QNameToStr(), and RPCParam::Serialize().

const std::string ax::QName::GetNsURI ( ) [inline]
 

Gets the Namespace URI for this QName.

Definition at line 129 of file QName.hpp.

const std::string ax::QName::GetNsURI ( ) [inline]
 

Gets the Namespace URI for this QName.

Definition at line 129 of file CVS/Base/QName.hpp.

Referenced by XMLSerializer::QNameToStr(), XMLDeSerializer::QNameToStr(), and RPCParam::Serialize().

void ax::QName::SetLocalPart ( const std::string & p_strLocalPart )
 

Sets the Local part for this QName.

Sets the Local part for this QName

Definition at line 156 of file QName.cpp.

void ax::QName::SetLocalPart ( const std::string & p_strLocalPart )
 

Sets the Local part for this QName.

Sets the Local part for this QName

Definition at line 156 of file QName.cpp.

void ax::QName::SetNsURI ( const std::string & p_strNsURI )
 

Sets the Namespace URI for this QName.

Sets the Namespace URI for this QName

Definition at line 146 of file QName.cpp.

void ax::QName::SetNsURI ( const std::string & p_strNsURI )
 

Sets the Namespace URI for this QName.

Sets the Namespace URI for this QName

Definition at line 146 of file QName.cpp.

bool ax::QName::operator== ( const QName & p_qName )
 

Indicates whether some other object is "equal to" this QName object.

Indicates whether some other object is "equal to" this QName object

Definition at line 174 of file QName.cpp.

bool ax::QName::operator== ( const QName & p_qName )
 

Indicates whether some other object is "equal to" this QName object.

Indicates whether some other object is "equal to" this QName object

Definition at line 174 of file QName.cpp.

const std::string ax::QName::toString ( )
 

Returns a string representation of this QName.

Returns a string representation of this QName

Definition at line 165 of file QName.cpp.

const std::string ax::QName::toString ( )
 

Returns a string representation of this QName.

Returns a string representation of this QName

Definition at line 165 of file QName.cpp.

Referenced by operator==().


Friends And Related Function Documentation

bool operator< ( const QName & left,
const QName & right ) [friend]
 

storage purpose in a std::map we need a get around for this.

Storage stratergy in a std::map we need a get around for this.

Definition at line 183 of file QName.cpp.

bool operator< ( const QName & left,
const QName & right ) [friend]
 

storage purpose in a std::map we need a get around for this.

Storage stratergy in a std::map we need a get around for this.

Definition at line 183 of file QName.cpp.


Member Data Documentation

std::string ax::QName::m_strLocalPart [private]
 

Loaclpart.

Definition at line 145 of file QName.hpp.

std::string ax::QName::m_strNsURI [private]
 

Namespace URI.

Definition at line 144 of file QName.hpp.


The documentation for this class was generated from the following files: Axis C++ Client Lib - User's Guide

Copyright © 2001 SL_OpenSource XML Project. All Rights Reserved