Library: XML
Package: SAX
Header: Poco/SAX/AttributesImpl.h
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:
Direct Base Classes: Attributes
All Base Classes: Attributes
Member Functions: addAttribute, begin, clear, end, find, getIndex, getLength, getLocalName, getQName, getType, getURI, getValue, isSpecified, operator =, removeAttribute, reserve, setAttribute, setAttributes, setLocalName, setQName, setType, setURI, setValue
Inherited Functions: getIndex, getLength, getLocalName, getQName, getType, getURI, getValue
typedef std::vector < Attribute > AttributeVec;
typedef AttributeVec::const_iterator iterator;
Creates the AttributesImpl.
AttributesImpl(
const Attributes & attributes
);
Creates the AttributesImpl by copying another one.
AttributesImpl(
const AttributesImpl & attributes
);
Creates the AttributesImpl by copying another one.
~AttributesImpl();
Destroys the AttributesImpl.
void addAttribute(
const XMLString & namespaceURI,
const XMLString & localName,
const XMLString & qname,
const XMLString & type,
const XMLString & value
);
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 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.
Attribute & addAttribute();
Add an (empty) attribute to the end of the list. For internal use only. The returned Attribute element must be filled by the caller.
iterator begin() const;
Iterator support.
void clear();
Removes all attributes.
iterator end() const;
Iterator support.
int getIndex(
const XMLString & name
) const;
See also: Poco::XML::Attributes::getIndex()
int getIndex(
const XMLString & namespaceURI,
const XMLString & localName
) const;
See also: Poco::XML::Attributes::getIndex()
int getLength() const;
See also: Poco::XML::Attributes::getLength()
const XMLString & getLocalName(
int i
) const;
See also: Poco::XML::Attributes::getLocalName()
const XMLString & getQName(
int i
) const;
See also: Poco::XML::Attributes::getQName()
const XMLString & getType(
int i
) const;
See also: Poco::XML::Attributes::getType()
const XMLString & getType(
const XMLString & qname
) const;
See also: Poco::XML::Attributes::getType()
const XMLString & getType(
const XMLString & namespaceURI,
const XMLString & localName
) const;
See also: Poco::XML::Attributes::getType()
const XMLString & getURI(
int i
) const;
See also: Poco::XML::Attributes::getURI()
const XMLString & getValue(
int i
) const;
See also: Poco::XML::Attributes::getValue()
const XMLString & getValue(
const XMLString & qname
) const;
See also: Poco::XML::Attributes::getValue()
const XMLString & getValue(
const XMLString & namespaceURI,
const XMLString & localName
) const;
See also: Poco::XML::Attributes::getValue()
bool isSpecified(
int i
) const;
Returns true unless the attribute value was provided by DTD defaulting. Extension from Attributes2 interface.
bool isSpecified(
const XMLString & qname
) const;
Returns true unless the attribute value was provided by DTD defaulting. Extension from Attributes2 interface.
bool isSpecified(
const XMLString & namespaceURI,
const XMLString & localName
) const;
Returns true unless the attribute value was provided by DTD defaulting. Extension from Attributes2 interface.
AttributesImpl & operator = (
const AttributesImpl & attributes
);
Assignment operator.
void removeAttribute(
int i
);
Removes an attribute.
void removeAttribute(
const XMLString & qname
);
Removes an attribute.
void removeAttribute(
const XMLString & namespaceURI,
const XMLString & localName
);
Removes an attribute.
void reserve(
std::size_t capacity
);
Reserves capacity in the internal vector.
void setAttribute(
int i,
const XMLString & namespaceURI,
const XMLString & localName,
const XMLString & qname,
const XMLString & type,
const XMLString & value
);
Sets an attribute.
void setAttributes(
const Attributes & attributes
);
Copies the attributes from another Attributes object.
void setLocalName(
int i,
const XMLString & localName
);
Sets the local name of an attribute.
void setQName(
int i,
const XMLString & qname
);
Sets the qualified name of an attribute.
void setType(
int i,
const XMLString & type
);
Sets the type of an attribute.
void setURI(
int i,
const XMLString & namespaceURI
);
Sets the namespace URI of an attribute.
void setValue(
int i,
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(
const XMLString & namespaceURI,
const XMLString & localName,
const XMLString & value
);
Sets the value of an attribute.
Attribute * find(
const XMLString & qname
) const;
Attribute * find(
const XMLString & namespaceURI,
const XMLString & localName
) const;