XMLBEANSXX  0.9.8
xmlbeansxx::Contents Class Reference

#include <Contents.h>

Inheritance diagram for xmlbeansxx::Contents:
Collaboration diagram for xmlbeansxx::Contents:

List of all members.

Classes

class  Walker

Public Member Functions

 Contents (const SchemaType *st)
virtual ~Contents ()
virtual void setSimpleContent (const std::string &c)
virtual std::string getSimpleContent () const
virtual std::string getCanonicalContent () const
virtual ContentsPtr getAttr (const QName &attrName) const
virtual void setAttr (const QName &attrName, ContentsPtr value)
virtual ContentsPtr getElem (const QName &elemName, int index=0) const
virtual void setElem (const QName &elemName, ContentsPtr value, int index=0)
virtual bool isSetElem (const QName &elemName, int index=0)
virtual void removeElems (const QName &elemName)
virtual void removeElemAt (const QName &elemName, int index)
virtual int countElems (const QName &elemName) const
virtual bool hasElements () const
virtual std::vector< ContentsPtrgetElemArray (const QName &elemName) const
virtual bool hasEmptyContent () const
virtual std::vector< std::pair
< QName, ContentsPtr > > 
getElems (bool all=false) const
virtual std::vector< std::pair
< QName, std::string > > 
getAttrs () const
virtual std::vector< std::pair
< QName, ContentsPtr > > 
getAttrs2 () const
virtual ContentsPtr clone ()
virtual void free ()
virtual void serializeDocument (std::ostream &o, XmlOptions options) const
virtual std::string digest () const
virtual const SchemaTypegetSchemaType () const

Public Attributes

ElemDict attrs
ElemDict elems
const xmlbeansxx::SchemaTypest

Private Member Functions

 XMLBEANSXX_STATIC_LOGGER_PTR (log)
virtual void serialize (bool printXsiType, const QName &elemName, std::ostream &o, NSMapSerializer &ns, XmlOptions options) const
virtual void serializeAttrs (std::ostream &o, NSMapSerializer &ns, XmlOptions options) const
virtual void serializeElems (std::ostream &o, NSMapSerializer &ns, XmlOptions options) const

Constructor & Destructor Documentation

xmlbeansxx::Contents::Contents ( const SchemaType st) [inline]

Member Function Documentation

int xmlbeansxx::Contents::countElems ( const QName elemName) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

std::string xmlbeansxx::Contents::digest ( ) const [virtual]
void xmlbeansxx::Contents::free ( ) [virtual]

Reimplemented in xmlbeansxx::StringContents.

ContentsPtr xmlbeansxx::Contents::getAttr ( const QName attrName) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

vector< pair< QName, string > > xmlbeansxx::Contents::getAttrs ( ) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

vector< pair< QName, ContentsPtr > > xmlbeansxx::Contents::getAttrs2 ( ) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

std::string xmlbeansxx::Contents::getCanonicalContent ( ) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

ContentsPtr xmlbeansxx::Contents::getElem ( const QName elemName,
int  index = 0 
) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

std::vector< ContentsPtr > xmlbeansxx::Contents::getElemArray ( const QName elemName) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

vector< pair< QName, ContentsPtr > > xmlbeansxx::Contents::getElems ( bool  all = false) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

const SchemaType * xmlbeansxx::Contents::getSchemaType ( ) const [virtual]
std::string xmlbeansxx::Contents::getSimpleContent ( ) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

bool xmlbeansxx::Contents::hasElements ( ) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

bool xmlbeansxx::Contents::hasEmptyContent ( ) const [virtual]

returns true while this contents don't have any attributes and elements

Reimplemented in xmlbeansxx::StringContents.

bool xmlbeansxx::Contents::isSetElem ( const QName elemName,
int  index = 0 
) [virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::removeElemAt ( const QName elemName,
int  index 
) [virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::removeElems ( const QName elemName) [virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::serialize ( bool  printXsiType,
const QName elemName,
std::ostream &  o,
NSMapSerializer ns,
XmlOptions  options 
) const [private, virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::serializeAttrs ( std::ostream &  o,
NSMapSerializer ns,
XmlOptions  options 
) const [private, virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::serializeDocument ( std::ostream &  o,
XmlOptions  options 
) const [virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::serializeElems ( std::ostream &  o,
NSMapSerializer ns,
XmlOptions  options 
) const [private, virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::setAttr ( const QName attrName,
ContentsPtr  value 
) [virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::setElem ( const QName elemName,
ContentsPtr  value,
int  index = 0 
) [virtual]

Reimplemented in xmlbeansxx::StringContents.

void xmlbeansxx::Contents::setSimpleContent ( const std::string &  c) [virtual]

Reimplemented in xmlbeansxx::StringContents.


Member Data Documentation


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