ACEXML  6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ACEXML_Debug_Element_Builder Class Reference

#include "parser/debug_validator/Debug_Element_Builder.h"

Inheritance diagram for ACEXML_Debug_Element_Builder:
Inheritance graph
Collaboration diagram for ACEXML_Debug_Element_Builder:
Collaboration graph

Public Member Functions

 ACEXML_Debug_Element_Builder ()
 
virtual ~ACEXML_Debug_Element_Builder ()
 
virtual int setElementName (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName)
 
virtual int setContentType (CONTENT_TYPE type)
 
virtual int insertMixedElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName)
 
virtual int startChildGroup ()
 
virtual int endChildGroup (CARDINALITY card)
 
virtual int setChoice ()
 
virtual int setSequence ()
 
virtual int insertElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName)
 
virtual void dump (void)
 
- Public Member Functions inherited from ACEXML_Element_Def_Builder
virtual ~ACEXML_Element_Def_Builder ()=0
 

Private Attributes

CONTENT_TYPE type_
 
ACEXML_String element_
 
ACEXML_Element_Tree_List_Noderoot_
 
ACEXML_Element_Tree_List_Stack active_list_
 

Additional Inherited Members

- Public Types inherited from ACEXML_Element_Def_Builder
enum  CONTENT_TYPE {
  EMPTY, ANY, MIXED, CHILDREN,
  UNDEFINED
}
 
enum  CARDINALITY { ONE, ZERO_OR_MORE, ONE_OR_MORE, ONE_OR_ZERO }
 
typedef auto_ptr
< ACEXML_Element_Def_Builder
VAR
 

Detailed Description

This class prints out the element definition for debugging purpose.

Todo:
This class is not namespace-aware.

Constructor & Destructor Documentation

ACEXML_Debug_Element_Builder::ACEXML_Debug_Element_Builder ( )
ACEXML_Debug_Element_Builder::~ACEXML_Debug_Element_Builder ( )
virtual

Member Function Documentation

void ACEXML_Debug_Element_Builder::dump ( void  )
virtual

Dump the content of the attribute definition.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::endChildGroup ( CARDINALITY  card)
virtual

End a new group of children.

Return values
0on success.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::insertElement ( const ACEXML_Char namespaceURI,
const ACEXML_Char localName,
const ACEXML_Char qName 
)
virtual

Insert an new element into the current child group.

Return values
0on success, -1 otherwise.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::insertMixedElement ( const ACEXML_Char namespaceURI,
const ACEXML_Char localName,
const ACEXML_Char qName 
)
virtual

Insert one more element into Mixed definition.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::setChoice ( )
virtual

Set the type of current child group to Choice.

Return values
0on success, -1 if the type of the child group has already been set and this action conflicts with the previous setting.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::setContentType ( CONTENT_TYPE  type)
virtual

Define the content type of the element.

Return values
0if valid, -1 otherwise.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::setElementName ( const ACEXML_Char namespaceURI,
const ACEXML_Char localName,
const ACEXML_Char qName 
)
virtual

Define the name of the element.

Return values
0if valid, -1 otherwise.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::setSequence ( )
virtual

Set the type of current child group to Sequence.

Return values
0on success, -1 if the type of the child group has already been set and this action conflicts with the previous setting.

Implements ACEXML_Element_Def_Builder.

int ACEXML_Debug_Element_Builder::startChildGroup ( )
virtual

Start a new group of children.

Implements ACEXML_Element_Def_Builder.

Member Data Documentation

ACEXML_Element_Tree_List_Stack ACEXML_Debug_Element_Builder::active_list_
private
ACEXML_String ACEXML_Debug_Element_Builder::element_
private
ACEXML_Element_Tree_List_Node* ACEXML_Debug_Element_Builder::root_
private
CONTENT_TYPE ACEXML_Debug_Element_Builder::type_
private

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