Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgxml::XercesAttributesAdaptor Class Reference

#include <XercesAttributesAdaptor.H>

Inheritance diagram for qgxml::XercesAttributesAdaptor:

qgxml::Attributes List of all members.

Detailed Description

Todo:
Comment this class!
Author:
Jan Rendek
Date:
March 31, 2003 10:10
Since:
Qgar 2.1

Definition at line 65 of file XercesAttributesAdaptor.H.

Public Member Functions

Constructors
 XercesAttributesAdaptor (xercesc::Attributes *attributes)
 Default constructor.
Destructors
virtual ~XercesAttributesAdaptor ()
 Destructor.
Access
virtual int getIndex (const std::string &qName) const
 Look up the index of an attribute by XML 1.0 qualified name.
virtual int getIndex (const std::string &uri, const std::string &localName) const
 Look up the index of an attribute by Namespace name.
virtual int getLength () const
 Return the number of attributes in the list.
virtual std::string getLocalName (int index) const
 Look up an attribute's local name by index.
virtual std::string getQName (int index) const
 Look up an attribute's XML 1.0 qualified name by index.
virtual std::string getType (int index) const
 Look up an attribute's type by index.
virtual std::string getType (const std::string &qName) const
 Look up an attribute's type by XML 1.0 qualified name.
virtual std::string getType (const std::string &uri, const std::string &localName) const
 Look up an attribute's type by Namespace name.
virtual std::string getURI (int index) const
 Look up an attribute's Namespace URI by index.
virtual std::string getValue (int index) const
 Look up an attribute's value by index.
virtual std::string getValue (const std::string &qName) const
 Look up an attribute's value by XML 1.0 qualified name.
virtual std::string getValue (const std::string &uri, const std::string &localName) const
 Look up an attribute's value by Namespace name.

Protected Attributes

xercesc::Attributes * _impl
XercesStringConverter _sc


Constructor & Destructor Documentation

qgxml::XercesAttributesAdaptor::XercesAttributesAdaptor xercesc::Attributes *  attributes  ) 
 

Default constructor.

Definition at line 56 of file XercesAttributesAdaptor.C.

References _impl.

qgxml::XercesAttributesAdaptor::~XercesAttributesAdaptor  )  [virtual]
 

Destructor.

Definition at line 67 of file XercesAttributesAdaptor.C.


Member Function Documentation

virtual int qgxml::XercesAttributesAdaptor::getIndex const std::string &  uri,
const std::string &  localName
const [virtual]
 

Look up the index of an attribute by Namespace name.

Parameters:
uri The Namespace URI, or the empty string if the name has no Namespace URI.
localName The attribute's local name.
Returns:
The index of the attribute, or -1 if it does not appear in the list.

Implements qgxml::Attributes.

virtual int qgxml::XercesAttributesAdaptor::getIndex const std::string &  qName  )  const [virtual]
 

Look up the index of an attribute by XML 1.0 qualified name.

Parameters:
qName The qualified (prefixed) name.
Returns:
The index of the attribute, or -1 if it does not appear in the list.

Implements qgxml::Attributes.

int qgxml::XercesAttributesAdaptor::getLength  )  const [virtual]
 

Return the number of attributes in the list.

Once you know the number of attributes, you can iterate through the list.

Returns:
The number of attributes in the list.

Implements qgxml::Attributes.

Definition at line 94 of file XercesAttributesAdaptor.C.

References _impl.

string qgxml::XercesAttributesAdaptor::getLocalName int  index  )  const [virtual]
 

Look up an attribute's local name by index.

Parameters:
index The attribute index (zero-based).
Returns:
The local name, or the empty string if Namespace processing is not being performed, or null if the index is out of range.

Implements qgxml::Attributes.

Definition at line 102 of file XercesAttributesAdaptor.C.

References _impl, _sc, and qgxml::XercesStringConverter::convert().

string qgxml::XercesAttributesAdaptor::getQName int  index  )  const [virtual]
 

Look up an attribute's XML 1.0 qualified name by index.

Parameters:
index The attribute index (zero-based).
Returns:
The XML 1.0 qualified name, or the empty string if none is available, or null if the index is out of range.

Implements qgxml::Attributes.

Definition at line 110 of file XercesAttributesAdaptor.C.

References _impl, _sc, and qgxml::XercesStringConverter::convert().

virtual std::string qgxml::XercesAttributesAdaptor::getType const std::string &  uri,
const std::string &  localName
const [virtual]
 

Look up an attribute's type by Namespace name.

Parameters:
uri The Namespace URI, or the empty String if the name has no Namespace URI.
localName The local name of the attribute.
Returns:
The attribute type as a string.

Implements qgxml::Attributes.

virtual std::string qgxml::XercesAttributesAdaptor::getType const std::string &  qName  )  const [virtual]
 

Look up an attribute's type by XML 1.0 qualified name.

Parameters:
qName The XML 1.0 qualified name.
Returns:
The attribute type as a string.

Implements qgxml::Attributes.

string qgxml::XercesAttributesAdaptor::getType int  index  )  const [virtual]
 

Look up an attribute's type by index.

Parameters:
index The attribute index (zero-based).
Returns:
The attribute's type as a string.

Implements qgxml::Attributes.

Definition at line 118 of file XercesAttributesAdaptor.C.

References _impl, _sc, and qgxml::XercesStringConverter::convert().

string qgxml::XercesAttributesAdaptor::getURI int  index  )  const [virtual]
 

Look up an attribute's Namespace URI by index.

Parameters:
index The attribute index (zero-based).
Returns:
The Namespace URI, or the empty string if none is available.

Implements qgxml::Attributes.

Definition at line 144 of file XercesAttributesAdaptor.C.

References _impl, _sc, and qgxml::XercesStringConverter::convert().

virtual std::string qgxml::XercesAttributesAdaptor::getValue const std::string &  uri,
const std::string &  localName
const [virtual]
 

Look up an attribute's value by Namespace name.

Parameters:
uri The Namespace URI, or the empty String if the name has no Namespace URI.
localName The local name of the attribute.
Returns:
The attribute value as a string, or null if the attribute is not in the list.

Implements qgxml::Attributes.

virtual std::string qgxml::XercesAttributesAdaptor::getValue const std::string &  qName  )  const [virtual]
 

Look up an attribute's value by XML 1.0 qualified name.

Parameters:
qName The XML 1.0 qualified name.
Returns:
The attribute value as a string, or null if the attribute is not in the list or if qualified names are not available.

Implements qgxml::Attributes.

string qgxml::XercesAttributesAdaptor::getValue int  index  )  const [virtual]
 

Look up an attribute's value by index.

Parameters:
index The attribute index (zero-based).
Returns:
The attribute's value as a string, or null if the index is out of range.

Implements qgxml::Attributes.

Definition at line 152 of file XercesAttributesAdaptor.C.

References _impl, _sc, and qgxml::XercesStringConverter::convert().


Member Data Documentation

xercesc::Attributes* qgxml::XercesAttributesAdaptor::_impl [protected]
 

Definition at line 132 of file XercesAttributesAdaptor.H.

Referenced by getLength(), getLocalName(), getQName(), getType(), getURI(), getValue(), and XercesAttributesAdaptor().

XercesStringConverter qgxml::XercesAttributesAdaptor::_sc [protected]
 

Definition at line 134 of file XercesAttributesAdaptor.H.

Referenced by getLocalName(), getQName(), getType(), getURI(), and getValue().


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