Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACEXML_Debug_DTD_Manager Class Reference

#include <Debug_DTD_Manager.h>

Inheritance diagram for ACEXML_Debug_DTD_Manager:

Inheritance graph
[legend]
Collaboration diagram for ACEXML_Debug_DTD_Manager:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACEXML_Debug_DTD_Manager ()
virtual ~ACEXML_Debug_DTD_Manager ()
virtual ACEXML_Element_Def_BuildergetElement_Def_Builder ()
virtual int insertElement_Definition (ACEXML_Element_Def_Builder *def ACEXML_ENV_ARG_DECL)
virtual ACEXML_Attributes_Def_BuildergetAttribute_Def_Builder ()
virtual int insertAttributes_Definition (ACEXML_Attributes_Def_Builder *def ACEXML_ENV_ARG_DECL)
virtual ACEXML_ValidatorgetValidator (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL)

Constructor & Destructor Documentation

ACEXML_Debug_DTD_Manager::ACEXML_Debug_DTD_Manager  
 

Definition at line 8 of file Debug_DTD_Manager.cpp.

00009 {
00010 
00011 }

ACEXML_Debug_DTD_Manager::~ACEXML_Debug_DTD_Manager   [virtual]
 

Definition at line 13 of file Debug_DTD_Manager.cpp.

00014 {
00015 
00016 }


Member Function Documentation

ACEXML_Attributes_Def_Builder * ACEXML_Debug_DTD_Manager::getAttribute_Def_Builder   [virtual]
 

Acquire a pointer to an attributes definition builder.

Implements ACEXML_DTD_Manager.

Definition at line 39 of file Debug_DTD_Manager.cpp.

References ACE_NEW_RETURN.

00040 {
00041   ACEXML_Attributes_Def_Builder *tmp;
00042   ACE_NEW_RETURN (tmp,
00043                   ACEXML_Debug_Attributes_Builder (),
00044                   0);
00045   return tmp;
00046 }

ACEXML_Element_Def_Builder * ACEXML_Debug_DTD_Manager::getElement_Def_Builder   [virtual]
 

Acquire a pointer to an element definition builder. The XML parser use this interface to acquire the definition builder and use the builder to create the DTD element definition. The resulting builder is then registered with the DTD Manager or destroyed if error occured when the builder encountered errors.

Return values:
0  if error occurs creating the builder.

Implements ACEXML_DTD_Manager.

Definition at line 19 of file Debug_DTD_Manager.cpp.

00020 {
00021   return new ACEXML_Debug_Element_Builder ();
00022 }

ACEXML_Validator * ACEXML_Debug_DTD_Manager::getValidator const ACEXML_Char   namespaceURI,
const ACEXML_Char   localName,
const ACEXML_Char *qName    ACEXML_ENV_ARG_DECL
[virtual]
 

Acquire an element validator to validate an XML element.

Todo:
I haven't figured out what memory management scheme we should use for the acquired validator.

Implements ACEXML_DTD_Manager.

Definition at line 62 of file Debug_DTD_Manager.cpp.

References ACE_TEXT, ACEXML_Char, ACEXML_ENV_ARG_DECL, and ACEXML_THROW_RETURN.

00065 {
00066   ACE_UNUSED_ARG (namespaceURI);
00067   ACE_UNUSED_ARG (localName);
00068   ACE_UNUSED_ARG (qName);
00069 
00070   ACEXML_THROW_RETURN (ACEXML_SAXNotSupportedException (ACE_TEXT ("getValidator()")), 0);
00071 }

int ACEXML_Debug_DTD_Manager::insertAttributes_Definition ACEXML_Attributes_Def_Builder *def    ACEXML_ENV_ARG_DECL [virtual]
 

Insert a new attributes definition into the DTD Manager.

Return values:
0  if success, -1 otherwise.

Implements ACEXML_DTD_Manager.

Definition at line 49 of file Debug_DTD_Manager.cpp.

References ACE_TEXT, ACEXML_ENV_ARG_DECL, ACEXML_THROW_RETURN, and ACEXML_Attributes_Def_Builder::VAR.

00050 {
00051   ACEXML_Attributes_Def_Builder::VAR ptr (def);
00052   if (def != 0)
00053     {
00054       ptr->dump ();
00055       return 0;
00056     }
00057 
00058   ACEXML_THROW_RETURN (ACEXML_SAXParseException (ACE_TEXT("ACEXML_Debug_Attributes_Builder internal error")), -1);
00059 }

int ACEXML_Debug_DTD_Manager::insertElement_Definition ACEXML_Element_Def_Builder *def    ACEXML_ENV_ARG_DECL [virtual]
 

Insert a new element definition into the DTD Manager.

Return values:
0  if success, -1 if error.

Implements ACEXML_DTD_Manager.

Definition at line 25 of file Debug_DTD_Manager.cpp.

References ACE_TEXT, ACEXML_ENV_ARG_DECL, ACEXML_THROW_RETURN, and ACEXML_Element_Def_Builder::VAR.

00026 {
00027   ACEXML_Element_Def_Builder::VAR ptr (def);
00028 
00029   if (def != 0)
00030     {
00031       ptr->dump ();
00032       return 0;
00033     }
00034 
00035   ACEXML_THROW_RETURN (ACEXML_SAXParseException (ACE_TEXT("ACEXML_Debug_Attributes_Builder internal error")), -1);
00036 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:26:41 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002