MagicSmoke  $VERSION$
MOKeyValuePairAbstract Class Reference

#include <srcMOKeyValuePairAbstract.h>

Inheritance diagram for MOKeyValuePairAbstract:
MOKeyValuePair

Public Member Functions

 MOKeyValuePairAbstract ()
 default constructor: constructs an invalid instance of MOKeyValuePairAbstract More...
 
 MOKeyValuePairAbstract (const MOKeyValuePairAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOKeyValuePairAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOKeyValuePairAbstract ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< bool > isnull () const
 
virtual Nullable< QString > key () const
 
MOKeyValuePairAbstractoperator= (const MOKeyValuePairAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setisnull (Nullable< bool > s)
 
virtual void setkey (Nullable< QString > s)
 
virtual void setvalue (Nullable< QString > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="KeyValuePair")
 Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More...
 
void toXml (QDomDocument &, QDomElement &)
 Serializes the object into the given element. More...
 
virtual Nullable< QString > value () const
 

Static Public Member Functions

static MOKeyValuePairAbstract fromString (const QString &)
 create MOKeyValuePairAbstract from XML formatted string (inverse of toString) More...
 
static MOKeyValuePairAbstract fromXml (const QDomElement &)
 create MOKeyValuePairAbstract from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< bool > mp_isnull
 
Nullable< QString > mp_key
 
Nullable< QString > mp_value
 

Constructor & Destructor Documentation

MOKeyValuePairAbstract::MOKeyValuePairAbstract ( )
inline

default constructor: constructs an invalid instance of MOKeyValuePairAbstract

Referenced by fromString(), and fromXml().

MOKeyValuePairAbstract::MOKeyValuePairAbstract ( const MOKeyValuePairAbstract o)

copy constructor: creates a (deep) copy of the object

References mp_isnull, mp_key, and mp_value.

MOKeyValuePairAbstract::MOKeyValuePairAbstract ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References setisnull(), setkey(), and setvalue().

virtual MOKeyValuePairAbstract::~MOKeyValuePairAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

MOKeyValuePairAbstract MOKeyValuePairAbstract::fromString ( const QString &  txt)
static

create MOKeyValuePairAbstract from XML formatted string (inverse of toString)

References MOKeyValuePairAbstract().

MOKeyValuePairAbstract MOKeyValuePairAbstract::fromXml ( const QDomElement &  root)
static

create MOKeyValuePairAbstract from XML (inverse of toXml)

References MOKeyValuePairAbstract().

virtual Nullable<bool> MOKeyValuePairAbstract::isnull ( ) const
inlinevirtual
virtual Nullable<QString> MOKeyValuePairAbstract::key ( ) const
inlinevirtual
MOKeyValuePairAbstract & MOKeyValuePairAbstract::operator= ( const MOKeyValuePairAbstract o)

copy assignment: creates a (deep) copy of the object

References mp_isnull, mp_key, and mp_value.

virtual void MOKeyValuePairAbstract::setisnull ( Nullable< bool >  s)
inlinevirtual
virtual void MOKeyValuePairAbstract::setkey ( Nullable< QString >  s)
inlinevirtual
virtual void MOKeyValuePairAbstract::setvalue ( Nullable< QString >  s)
inlinevirtual
QString MOKeyValuePairAbstract::toString ( )

Serializes the object to XML and returns the string representation of that XML.

References toXml().

QDomElement MOKeyValuePairAbstract::toXml ( QDomDocument &  doc,
QString  name = "KeyValuePair" 
)

Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.

Parameters
docthe DOM document node for which to generate the element
namethe name to give the generated element, per default "MOKeyValuePairAbstract" is used

Referenced by toString().

void MOKeyValuePairAbstract::toXml ( QDomDocument &  doc,
QDomElement &  r 
)

Serializes the object into the given element.

References mp_isnull, mp_key, and mp_value.

virtual Nullable<QString> MOKeyValuePairAbstract::value ( ) const
inlinevirtual

Member Data Documentation

Nullable<bool> MOKeyValuePairAbstract::mp_isnull
protected
Nullable<QString> MOKeyValuePairAbstract::mp_key
protected
Nullable<QString> MOKeyValuePairAbstract::mp_value
protected

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