C++/Tree Mapping Runtime Library
|
Class corresponding to the XML Schema QName built-in type. More...
#include <types.hxx>
Constructors | |
qname (const ncname &n) | |
Initialize an instance with a name only. | |
qname (const uri &ns, const ncname &n) | |
Initialize an instance with a name and a namespace. | |
qname (const qname &x, flags f=0, container *c=0) | |
Copy constructor. | |
virtual qname * | _clone (flags f=0, container *c=0) const |
Copy the instance polymorphically. | |
template<typename S > | |
qname (istream< S > &s, flags f=0, container *c=0) | |
Create an instance from a data representation stream. | |
qname (const xercesc::DOMElement &e, flags f=0, container *c=0) | |
Create an instance from a DOM element. | |
qname (const xercesc::DOMAttr &a, flags f=0, container *c=0) | |
Create an instance from a DOM Attribute. | |
qname (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0) | |
Create an instance from a string fragment. | |
bool | qualified () const |
Determine if the name is qualified. | |
const uri & | namespace_ () const |
Get XML namespace. | |
const ncname & | name () const |
Get XML name. | |
Class corresponding to the XML Schema QName built-in type.
The qname class represents a potentially namespace-qualified XML name.
Initialize an instance with a name only.
The resulting qname is unqualified.
n | An XML name (ncname). |
Initialize an instance with a name and a namespace.
The resulting qname is qualified.
ns | An XML namespace (uri). |
n | An XML name (ncname). |
Copy constructor.
x | An instance to make a copy of. |
f | Flags to create the copy with. |
c | A pointer to the object that will contain the copy. |
For polymorphic object models use the _clone
function instead.
Create an instance from a data representation stream.
s | A stream to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Create an instance from a DOM element.
e | A DOM element to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Create an instance from a DOM Attribute.
a | A DOM attribute to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
qname | ( | const std::basic_string< C > & | s, |
const xercesc::DOMElement * | e, | ||
flags | f = 0 , |
||
container * | c = 0 |
||
) |
Create an instance from a string fragment.
s | A string fragment to extract the data from. |
e | A pointer to DOM element containing the string fragment. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Copy the instance polymorphically.
f | Flags to create the copy with. |
c | A pointer to the object that will contain the copy. |
This function ensures that the dynamic type of the instance is used for copying and should be used for polymorphic object models instead of the copy constructor.
Determine if the name is qualified.
|
inline |
Get XML namespace.
Referenced by xsd::cxx::tree::operator==().
Get XML name.
Referenced by xsd::cxx::tree::operator==().