ACEXML_Element_Def_Builder Class Reference

An abstract virtual class that defines the interface to define an element definition. More...

#include <common/Element_Def_Builder.h>

Inheritance diagram for ACEXML_Element_Def_Builder:

Inheritance graph
[legend]
List of all members.

Public Types

typedef auto_ptr< ACEXML_Element_Def_BuilderVAR
enum  CONTENT_TYPE {
  EMPTY, ANY, MIXED, CHILDREN,
  UNDEFINED
}
enum  CARDINALITY { ONE, ZERO_OR_MORE, ONE_OR_MORE, ONE_OR_ZERO }

Public Member Functions

virtual ~ACEXML_Element_Def_Builder ()=0
virtual int setElementName (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException))=0
virtual int setContentType (CONTENT_TYPE type ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException))=0
virtual int insertMixedElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException))=0
virtual int startChildGroup ()=0
virtual int endChildGroup (CARDINALITY card ACEXML_ENV_ARG_DECL)=0
virtual int setChoice ()=0
virtual int setSequence ()=0
virtual int insertElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException))=0
virtual void dump (void)=0

Detailed Description

An abstract virtual class that defines the interface to define an element definition.

This class defines how to define an element definition after parsing a DTD.

Definition at line 35 of file Element_Def_Builder.h.


Member Typedef Documentation

typedef auto_ptr<ACEXML_Element_Def_Builder> ACEXML_Element_Def_Builder::VAR
 

Definition at line 39 of file Element_Def_Builder.h.


Member Enumeration Documentation

enum ACEXML_Element_Def_Builder::CARDINALITY
 

Enumeration values:
ONE 
ZERO_OR_MORE 
ONE_OR_MORE 
ONE_OR_ZERO 

Definition at line 49 of file Element_Def_Builder.h.

00049                {
00050     ONE,
00051     ZERO_OR_MORE,
00052     ONE_OR_MORE,
00053     ONE_OR_ZERO
00054   } CARDINALITY;

enum ACEXML_Element_Def_Builder::CONTENT_TYPE
 

Enumeration values:
EMPTY 
ANY 
MIXED 
CHILDREN 
UNDEFINED 

Definition at line 41 of file Element_Def_Builder.h.

00041                {
00042     EMPTY,
00043     ANY,
00044     MIXED,
00045     CHILDREN,
00046     UNDEFINED
00047   } CONTENT_TYPE;


Constructor & Destructor Documentation

ACEXML_Element_Def_Builder::~ACEXML_Element_Def_Builder  )  [pure virtual]
 

Definition at line 5 of file Element_Def_Builder.cpp.

00006 {
00007 
00008 }


Member Function Documentation

virtual void ACEXML_Element_Def_Builder::dump void   )  [pure virtual]
 

Dump the content of the attribute definition.

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::endChildGroup CARDINALITY card  ACEXML_ENV_ARG_DECL  )  [pure virtual]
 

End a new group of children.

Return values:
0 on success.

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::insertElement const ACEXML_Char namespaceURI,
const ACEXML_Char localName,
const ACEXML_Char *qName  ACEXML_ENV_ARG_DECL
[pure virtual]
 

Insert an new element into the current child group.

Return values:
0 on success, -1 otherwise.

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::insertMixedElement const ACEXML_Char namespaceURI,
const ACEXML_Char localName,
const ACEXML_Char *qName  ACEXML_ENV_ARG_DECL
[pure virtual]
 

Insert one more element into Mixed definition.

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::setChoice  )  [pure virtual]
 

Set the type of current child group to Choice.

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

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::setContentType CONTENT_TYPE type  ACEXML_ENV_ARG_DECL  )  [pure virtual]
 

Define the content type of the element.

Return values:
0 if valid, -1 otherwise.

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::setElementName const ACEXML_Char namespaceURI,
const ACEXML_Char localName,
const ACEXML_Char *qName  ACEXML_ENV_ARG_DECL
[pure virtual]
 

Define the name of the element.

Return values:
0 if valid, -1 otherwise.

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::setSequence  )  [pure virtual]
 

Set the type of current child group to Sequence.

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

Implemented in ACEXML_Debug_Element_Builder.

virtual int ACEXML_Element_Def_Builder::startChildGroup  )  [pure virtual]
 

Start a new group of children.

Implemented in ACEXML_Debug_Element_Builder.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:47:50 2006 for ACEXML by doxygen 1.3.6