xmltooling::AbstractAttributeExtensibleXMLObject Class Reference

AbstractXMLObject mixin that implements AttributeExtensibleXMLObject. More...

#include <xmltooling/AbstractAttributeExtensibleXMLObject.h>

Inheritance diagram for xmltooling::AbstractAttributeExtensibleXMLObject:
xmltooling::AttributeExtensibleXMLObject xmltooling::AbstractXMLObject xmltooling::XMLObject xmltooling::XMLObject

List of all members.

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.

Detailed Description

AbstractXMLObject mixin that implements AttributeExtensibleXMLObject.

Inherit from this class to add support for attribute wildcarding.


Constructor & Destructor Documentation

xmltooling::AbstractAttributeExtensibleXMLObject::AbstractAttributeExtensibleXMLObject ( const AbstractAttributeExtensibleXMLObject src  )  [protected]

Copy constructor.


Member Function Documentation

const XMLCh* xmltooling::AbstractAttributeExtensibleXMLObject::getAttribute ( const QName qualifiedName  )  const [virtual]

Gets the value of an XML attribute of the object.

Parameters:
qualifiedName qualified name of the attribute
Returns:
the attribute value, or nullptr

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.

Returns:
an xml:lang value, or nullptr

Reimplemented from xmltooling::XMLObject.

const XMLCh* xmltooling::AbstractAttributeExtensibleXMLObject::getXMLID (  )  const [virtual]

Gets the value of the ID attribute set on this object, if any.

Returns:
an ID value or nullptr

Reimplemented from xmltooling::AbstractXMLObject.

void xmltooling::AbstractAttributeExtensibleXMLObject::marshallExtensionAttributes ( xercesc::DOMElement *  domElement  )  const [protected]

Assists in the marshalling of extension attributes.

Parameters:
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.

Parameters:
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.

Parameters:
attribute the DOM attribute node being unmarshalled

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

Generated on 24 Jan 2020 for xmltooling by  doxygen 1.6.1