xmltooling::Namespace Class Reference
A data structure for encapsulating XML Namespace attributes.
More...
#include <xmltooling/Namespace.h>
List of all members.
Detailed Description
A data structure for encapsulating XML Namespace attributes.
Constructor & Destructor Documentation
xmltooling::Namespace::Namespace |
( |
const XMLCh * |
uri = 0 , |
|
|
const XMLCh * |
prefix = 0 , |
|
|
bool |
alwaysDeclare = false , |
|
|
namespace_usage_t |
usage = Indeterminate | |
|
) |
| | |
Constructor.
- Parameters:
-
| uri | namespace URI |
| prefix | namespace prefix (without the colon) |
| alwaysDeclare | true iff the namespace should always be declared regardless of in-scope declarations |
| usage | indicates usage of namespace in the context of an XMLObject |
Member Function Documentation
bool xmltooling::Namespace::alwaysDeclare |
( |
|
) |
const [inline] |
Returns true iff the namespace should always be declared regardless of in-scope declarations.
- Returns:
- the alwaysDeclared setting
const XMLCh* xmltooling::Namespace::getNamespacePrefix |
( |
|
) |
const [inline] |
Returns the namespace prefix.
- Returns:
- Null-terminated Unicode string containing the prefix, without the colon
const XMLCh* xmltooling::Namespace::getNamespaceURI |
( |
|
) |
const [inline] |
Returns the namespace URI.
- Returns:
- Null-terminated Unicode string containing the URI
void xmltooling::Namespace::setAlwaysDeclare |
( |
bool |
alwaysDeclare |
) |
[inline] |
Sets the alwaysDeclared property.
- Parameters:
-
| alwaysDeclare | true iff the namespace should always be declared regardless of in-scope declarations |
void xmltooling::Namespace::setNamespacePrefix |
( |
const XMLCh * |
prefix |
) |
|
Sets the namespace prefix.
- Parameters:
-
| prefix | Null-terminated Unicode string containing the prefix, without the colon |
void xmltooling::Namespace::setNamespaceURI |
( |
const XMLCh * |
uri |
) |
|
Sets the namespace URI.
- Parameters:
-
| uri | Null-terminated Unicode string containing the URI |
Sets the usage property.
- Parameters:
-
Returns the usage of the namespace by an XMLObject.
- Returns:
- the usage setting
The documentation for this class was generated from the following file: