artefaktur
software engineer &        architecture

 
 
 
 

class AttributesImpl

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

org::xml::sax::helpers::AttributesImpl Class Reference

#include <AttributesImpl.h>

Inheritance diagram for org::xml::sax::helpers::AttributesImpl:

org::xml::sax::Attributes List of all members.

Detailed Description

provides a default implementation for a list of attributes


Public Member Functions

 AttributesImpl ()
 AttributesImpl (IN(RAttributes) atts)
virtual int getLength ()
 Return the number of attributes in the list.

virtual RString getURI (int index)
 Look up an attribute's Namespace URI by index.

virtual RString getLocalName (int index)
 Look up an attribute's local name by index.

virtual RString getQName (int index)
 Look up an attribute's XML 1.0 qualified name by index.

virtual RString getType (int index)
 Look up an attribute's type by index.

virtual RString getValue (int index)
 Look up an attribute's value by index.

virtual int getIndex (IN(RString) uri, IN(RString) localName)
virtual int getIndex (IN(RString) qName)
virtual RString getType (IN(RString) uri, IN(RString) localName)
virtual RString getType (IN(RString) qName)
virtual RString getValue (IN(RString) uri, IN(RString) localName)
virtual RString getValue (IN(RString) qName)
virtual void clear ()
virtual void setAttributes (IN(RAttributes) atts)
virtual void addAttribute (IN(RString) uri, IN(RString) localName, IN(RString) qName, IN(RString) type, IN(RString) value)
virtual void setAttribute (int index, IN(RString) uri, IN(RString) localName, IN(RString) qName, IN(RString) type, IN(RString) value)
virtual void removeAttribute (int index)
virtual void setURI (int index, IN(RString) uri)
virtual void setLocalName (int index, IN(RString) localName)
virtual void setQName (int index, IN(RString) qName)
virtual void setType (int index, IN(RString) type)
virtual void setValue (int index, IN(RString) value)

Private Member Functions

void _ensureCapacity (int n)
void badIndex (int index)

Private Attributes

int _length
RStringArray _data

Constructor & Destructor Documentation

org::xml::sax::helpers::AttributesImpl::AttributesImpl  )  [inline]
 

org::xml::sax::helpers::AttributesImpl::AttributesImpl IN(RAttributes atts  )  [inline]
 


Member Function Documentation

void org::xml::sax::helpers::AttributesImpl::_ensureCapacity int  n  )  [private]
 

virtual void org::xml::sax::helpers::AttributesImpl::addAttribute IN(RString uri,
IN(RString localName,
IN(RString qName,
IN(RString type,
IN(RString value
[virtual]
 

void org::xml::sax::helpers::AttributesImpl::badIndex int  index  )  [private]
 

virtual void org::xml::sax::helpers::AttributesImpl::clear  )  [inline, virtual]
 

virtual int org::xml::sax::helpers::AttributesImpl::getIndex IN(RString qName  )  [virtual]
 

virtual int org::xml::sax::helpers::AttributesImpl::getIndex IN(RString uri,
IN(RString localName
[virtual]
 

virtual int org::xml::sax::helpers::AttributesImpl::getLength  )  [inline, 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.
See also:
getURI(int)

getLocalName(int)

getQName(int)

getType(int)

getValue(int)

Implements org::xml::sax::Attributes.

virtual RString org::xml::sax::helpers::AttributesImpl::getLocalName int  index  )  [inline, 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.
See also:
getLength

Implements org::xml::sax::Attributes.

virtual RString org::xml::sax::helpers::AttributesImpl::getQName int  index  )  [inline, 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.
See also:
getLength

Implements org::xml::sax::Attributes.

virtual RString org::xml::sax::helpers::AttributesImpl::getType IN(RString qName  )  [virtual]
 

virtual RString org::xml::sax::helpers::AttributesImpl::getType IN(RString uri,
IN(RString localName
[virtual]
 

virtual RString org::xml::sax::helpers::AttributesImpl::getType int  index  )  [inline, virtual]
 

Look up an attribute's type by index.

The attribute type is one of the strings CDATA, ID, IDREF, IDREFS, NMTOKEN, NMTOKENS, ENTITY, ENTITIES, or NOTATION (always in upper case).

If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value CDATA as stated in the XML 1.0 Recommentation (clause 3.3.3, Attribute-Value Normalization).

For an enumerated attribute that is not a notation, the parser will report the type as NMTOKEN.

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

Implements org::xml::sax::Attributes.

virtual RString org::xml::sax::helpers::AttributesImpl::getURI int  index  )  [inline, 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, or null if the index is out of range.
See also:
getLength

Implements org::xml::sax::Attributes.

virtual RString org::xml::sax::helpers::AttributesImpl::getValue IN(RString qName  )  [virtual]
 

virtual RString org::xml::sax::helpers::AttributesImpl::getValue IN(RString uri,
IN(RString localName
[virtual]
 

virtual RString org::xml::sax::helpers::AttributesImpl::getValue int  index  )  [inline, virtual]
 

Look up an attribute's value by index.

If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.

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

Implements org::xml::sax::Attributes.

virtual void org::xml::sax::helpers::AttributesImpl::removeAttribute int  index  )  [virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setAttribute int  index,
IN(RString uri,
IN(RString localName,
IN(RString qName,
IN(RString type,
IN(RString value
[virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setAttributes IN(RAttributes atts  )  [virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setLocalName int  index,
IN(RString localName
[inline, virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setQName int  index,
IN(RString qName
[inline, virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setType int  index,
IN(RString type
[inline, virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setURI int  index,
IN(RString uri
[inline, virtual]
 

virtual void org::xml::sax::helpers::AttributesImpl::setValue int  index,
IN(RString value
[inline, virtual]
 


Member Data Documentation

RStringArray org::xml::sax::helpers::AttributesImpl::_data [private]
 

int org::xml::sax::helpers::AttributesImpl::_length [private]
 

 
Last modified 2005-05-08 18:34 by SYSTEM By Artefaktur, Ing. Bureau Kommer