AbstractXMLObject mixin that implements AttributeExtensibleXMLObject. More...
#include <xmltooling/AbstractAttributeExtensibleXMLObject.h>
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. | |
const XMLCh * | getLang () const |
Returns the xml:lang property of the 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. |
AbstractXMLObject mixin that implements AttributeExtensibleXMLObject.
Inherit from this class to add support for attribute wildcarding.
xmltooling::AbstractAttributeExtensibleXMLObject::AbstractAttributeExtensibleXMLObject | ( | const AbstractAttributeExtensibleXMLObject & | src | ) | [protected] |
Copy constructor.
const XMLCh* xmltooling::AbstractAttributeExtensibleXMLObject::getAttribute | ( | const QName & | qualifiedName | ) | const [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 [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::getLang | ( | ) | const [virtual] |
Returns the xml:lang property of the object, if any.
Reimplemented from xmltooling::XMLObject.
const XMLCh* xmltooling::AbstractAttributeExtensibleXMLObject::getXMLID | ( | ) | const [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 nullptr 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 |