## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# NameSpace Class Reference

A representation of a namespace. More...

Collaboration diagram for NameSpace:

[legend]
List of all members.

## Public Member Functions

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

## Static Public Member Functions

- NameSpace * create (const XalanDOMString &prefix, const XalanDOMString &uri, MemoryManagerType &theManager)

## Detailed Description

A representation of a namespace.

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

## Constructor & Destructor Documentation

NameSpace::NameSpace | ( | MemoryManagerType & | theManager | ) | `[explicit]`

NameSpace::NameSpace | ( | const XalanDOMString & | prefix,
|  | const XalanDOMString & | uri,
|  | MemoryManagerType & | theManager
| ) |

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

Parameters:

  prefix | namespace prefix
  uri | URI of namespace

NameSpace::NameSpace | ( | const NameSpace & | other,
|  | MemoryManagerType & | theManager
| ) |

NameSpace::~NameSpace | ( |  | ) |

## Member Function Documentation

void NameSpace::clear | ( |  | ) |

NameSpace* NameSpace::create | ( | const XalanDOMString & | prefix,
|  | const XalanDOMString & | uri,
|  | MemoryManagerType & | theManager
| ) | `[static]`

bool NameSpace::empty | ( |  | ) | const

const XalanDOMString& NameSpace::getPrefix | ( |  | ) | const

Retrieve the prefix for namespace.

Returns:
  prefix string

const XalanDOMString& NameSpace::getURI | ( |  | ) | const

Retrieve the URI for namespace.

Returns:
  URI string

bool NameSpace::operator== | ( | const NameSpace & | theRHS | ) | const

Equality operator.

Parameters:

  theRHS | namespace to compare

void NameSpace::setPrefix | ( | const XalanDOMString & | prefix | ) |

Set the prefix for namespace.

Parameters:

  prefix | The new prefix value

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

Set the URI for namespace.

Parameters:

  uri | The new uri value
  len | The length of the uri

void NameSpace::setURI | ( | const XalanDOMChar * | uri | ) |

Set the URI for namespace.

Parameters:

  uri | The new uri value

void NameSpace::setURI | ( | const XalanDOMString & | uri | ) |

Set the URI for namespace.

Parameters:

  uri | The new uri value

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

- NameSpace.hpp

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.