#include <xmltooling/QName.h>
Public Member Functions | |
| QName (const XMLCh *uri=NULL, const XMLCh *localPart=NULL, const XMLCh *prefix=NULL) | |
| Constructor. | |
| QName (const char *uri, const char *localPart, const char *prefix=NULL) | |
| Constructor. | |
| bool | hasPrefix () const |
| Indicates whether the QName has a prefix. | |
| bool | hasNamespaceURI () const |
| Indicates whether the QName has a non-empty namespace. | |
| bool | hasLocalPart () const |
| Indicates whether the QName has a non-empty local name. | |
| const XMLCh * | getPrefix () const |
| Returns the namespace prefix. | |
| const XMLCh * | getNamespaceURI () const |
| Returns the namespace URI. | |
| const XMLCh * | getLocalPart () const |
| Returns the local part of the name. | |
| void | setPrefix (const XMLCh *prefix) |
| Sets the namespace prefix. | |
| void | setNamespaceURI (const XMLCh *uri) |
| Sets the namespace URI. | |
| void | setLocalPart (const XMLCh *localPart) |
| Sets the local part of the name. | |
| void | setPrefix (const char *prefix) |
| Sets the namespace prefix. | |
| void | setNamespaceURI (const char *uri) |
| Sets the namespace URI. | |
| void | setLocalPart (const char *localPart) |
| Sets the local part of the name. | |
| std::string | toString () const |
| Gets a string representation of the QName for logging, etc. | |
The Xerces class is too limited to use at the moment.
| xmltooling::QName::QName | ( | const XMLCh * | uri = NULL, |
|
| const XMLCh * | localPart = NULL, |
|||
| const XMLCh * | prefix = NULL | |||
| ) |
Constructor.
| uri | namespace URI | |
| localPart | local name | |
| prefix | namespace prefix (without the colon) |
| xmltooling::QName::QName | ( | const char * | uri, | |
| const char * | localPart, | |||
| const char * | prefix = NULL | |||
| ) |
Constructor.
| uri | namespace URI | |
| localPart | local name | |
| prefix | namespace prefix (without the colon) |
| const XMLCh* xmltooling::QName::getLocalPart | ( | ) | const [inline] |
Returns the local part of the name.
| const XMLCh* xmltooling::QName::getNamespaceURI | ( | ) | const [inline] |
Returns the namespace URI.
| const XMLCh* xmltooling::QName::getPrefix | ( | ) | const [inline] |
Returns the namespace prefix.
| bool xmltooling::QName::hasLocalPart | ( | ) | const [inline] |
Indicates whether the QName has a non-empty local name.
| bool xmltooling::QName::hasNamespaceURI | ( | ) | const [inline] |
| bool xmltooling::QName::hasPrefix | ( | ) | const [inline] |
| void xmltooling::QName::setLocalPart | ( | const char * | localPart | ) |
Sets the local part of the name.
| localPart | Null-terminated ASCII string containing the local name |
| void xmltooling::QName::setLocalPart | ( | const XMLCh * | localPart | ) |
Sets the local part of the name.
| localPart | Null-terminated Unicode string containing the local name |
| void xmltooling::QName::setNamespaceURI | ( | const char * | uri | ) |
Sets the namespace URI.
| uri | Null-terminated ASCII string containing the URI |
| void xmltooling::QName::setNamespaceURI | ( | const XMLCh * | uri | ) |
Sets the namespace URI.
| uri | Null-terminated Unicode string containing the URI |
| void xmltooling::QName::setPrefix | ( | const char * | prefix | ) |
Sets the namespace prefix.
| prefix | Null-terminated ASCII string containing the prefix, without the colon |
| void xmltooling::QName::setPrefix | ( | const XMLCh * | prefix | ) |
Sets the namespace prefix.
| prefix | Null-terminated Unicode string containing the prefix, without the colon |
| std::string xmltooling::QName::toString | ( | ) | const |
Gets a string representation of the QName for logging, etc.
Format is prefix:localPart or {namespaceURI}localPart if no prefix.
1.4.7