Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::XML::AttributesImpl Class Reference

#include <AttributesImpl.h>

Inheritance diagram for Poco::XML::AttributesImpl:

Poco::XML::Attributes

List of all members.


Detailed Description

This class provides a default implementation of the SAX2 Attributes interface, with the addition of manipulators so that the list can be modified or reused.

There are two typical uses of this class: 1. to take a persistent snapshot of an Attributes object in a startElement event; or 2. to construct or modify an Attributes object in a SAX2 driver or filter.

Definition at line 52 of file AttributesImpl.h.


Public Types

typedef std::vector< AttributeAttributeVec
typedef
AttributeVec::const_iterator 
iterator

Public Member Functions

void addAttribute (const XMLChar *namespaceURI, const XMLChar *localName, const XMLChar *qname, const XMLChar *type, const XMLChar *value, bool specified)
 Adds an attribute to the end of the list.
void addAttribute (const XMLString &namespaceURI, const XMLString &localName, const XMLString &qname, const XMLString &type, const XMLString &value, bool specified)
 Adds an attribute to the end of the list.
void addAttribute (const XMLString &namespaceURI, const XMLString &localName, const XMLString &qname, const XMLString &type, const XMLString &value)
 Sets an attribute.
 AttributesImpl (const AttributesImpl &attributes)
 Creates the AttributesImpl by copying another one.
 AttributesImpl (const Attributes &attributes)
 Creates the AttributesImpl.
iterator begin () const
void clear ()
 Removes an attribute.
iterator end () const
 Iterator support.
int getIndex (const XMLString &namespaceURI, const XMLString &localName) const
 Look up the index of an attribute by a qualified name.
int getIndex (const XMLString &name) const
 Assignment operator.
int getLength () const
 Look up the index of an attribute by a namspace name.
XMLString getLocalName (int i) const
XMLString getQName (int i) const
 Look up a local attribute name by index.
XMLString getType (const XMLString &namespaceURI, const XMLString &localName) const
XMLString getType (const XMLString &qname) const
XMLString getType (int i) const
 Look up a qualified attribute name by index.
XMLString getURI (int i) const
XMLString getValue (const XMLString &namespaceURI, const XMLString &localName) const
XMLString getValue (const XMLString &qname) const
XMLString getValue (int i) const
bool isSpecified (const XMLString &namespaceURI, const XMLString &localName) const
bool isSpecified (const XMLString &qname) const
bool isSpecified (int i) const
AttributesImploperator= (const AttributesImpl &attributes)
 Destroys the AttributesImpl.
void removeAttribute (const XMLString &namespaceURI, const XMLString &localName)
 Removes an attribute.
void removeAttribute (const XMLString &qname)
 Removes an attribute.
void removeAttribute (int i)
 Adds an attribute to the end of the list.
void setAttribute (int i, const XMLString &namespaceURI, const XMLString &localName, const XMLString &qname, const XMLString &type, const XMLString &value)
 Copies the attributes from another Attributes object.
void setAttributes (const Attributes &attributes)
 Sets the value of an attribute.
void setLocalName (int i, const XMLString &localName)
 Removes all attributes.
void setQName (int i, const XMLString &qname)
 Sets the local name of an attribute.
void setType (int i, const XMLString &type)
 Sets the qualified name of an attribute.
void setURI (int i, const XMLString &namespaceURI)
 Sets the type of an attribute.
void setValue (const XMLString &namespaceURI, const XMLString &localName, const XMLString &value)
 Sets the value of an attribute.
void setValue (const XMLString &qname, const XMLString &value)
 Sets the value of an attribute.
void setValue (int i, const XMLString &value)
 ~AttributesImpl ()
 Creates the AttributesImpl by copying another one.

Protected Member Functions

Attributefind (const XMLString &namespaceURI, const XMLString &localName) const
Attributefind (const XMLString &qname) const
 Iterator support.

Private Attributes

AttributeVec _attributes

Classes

struct  Attribute
 Sets the namespace URI of an attribute. More...

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

Generated by  Doxygen 1.6.0   Back to index