#include <xmltooling/AbstractAttributeExtensibleXMLObject.h>
Inheritance diagram for xmltooling::AbstractAttributeExtensibleXMLObject:
Public Member Functions | |
const XMLCh * | getAttribute (const QName &qualifiedName) const |
Gets the value of an XML attribute of the object. | |
void | setAttribute (const QName &qualifiedName, const XMLCh *value, bool ID=false) |
Sets (or clears) an XML attribute of the object. | |
const std::map< QName, XMLCh * > & | getExtensionAttributes () const |
Gets an immutable map of the extended XML attributes of the object. | |
const XMLCh * | getXMLID () const |
Gets the value of the ID attribute set on this object, if any. | |
Protected Member Functions | |
AbstractAttributeExtensibleXMLObject (const AbstractAttributeExtensibleXMLObject &src) | |
Copy constructor. | |
void | unmarshallExtensionAttribute (const xercesc::DOMAttr *attribute) |
Assists in the unmarshalling of extension attributes. | |
void | marshallExtensionAttributes (xercesc::DOMElement *domElement) const |
Assists in the marshalling of extension attributes. |
Inherit from this class to add support for attribute wildcarding.
const XMLCh* xmltooling::AbstractAttributeExtensibleXMLObject::getAttribute | ( | const QName & | qualifiedName | ) | const [inline, virtual] |
Gets the value of an XML attribute of the object.
qualifiedName | qualified name of the attribute |
Implements xmltooling::AttributeExtensibleXMLObject.
const std::map<QName,XMLCh*>& xmltooling::AbstractAttributeExtensibleXMLObject::getExtensionAttributes | ( | ) | const [inline, virtual] |
Gets an immutable map of the extended XML attributes of the object.
This set is not guaranteed to (and generally will not) include attributes defined directly on the object's "type".
Implements xmltooling::AttributeExtensibleXMLObject.
const XMLCh* xmltooling::AbstractAttributeExtensibleXMLObject::getXMLID | ( | ) | const [inline, virtual] |
Gets the value of the ID attribute set on this object, if any.
Reimplemented from xmltooling::AbstractXMLObject.
void xmltooling::AbstractAttributeExtensibleXMLObject::marshallExtensionAttributes | ( | xercesc::DOMElement * | domElement | ) | const [protected] |
Assists in the marshalling of extension attributes.
domElement | the DOM element against which to marshall the attributes |
void xmltooling::AbstractAttributeExtensibleXMLObject::setAttribute | ( | const QName & | qualifiedName, | |
const XMLCh * | value, | |||
bool | ID = false | |||
) | [virtual] |
Sets (or clears) an XML attribute of the object.
qualifiedName | qualified name of the attribute | |
value | value to set, or NULL to clear | |
ID | true iff the attribute is an XML ID |
Implements xmltooling::AttributeExtensibleXMLObject.
void xmltooling::AbstractAttributeExtensibleXMLObject::unmarshallExtensionAttribute | ( | const xercesc::DOMAttr * | attribute | ) | [protected] |
Assists in the unmarshalling of extension attributes.
attribute | the DOM attribute node being unmarshalled |