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

DBOBJGetStatementSAXBuilder Class Reference

#include <dbobjgetstatement.hpp>

Collaboration diagram for DBOBJGetStatementSAXBuilder:

Collaboration graph
[legend]
List of all members.

Detailed Description

Builds a DBObj statement objects tree from a XML stream.

Definition at line 277 of file dbobjgetstatement.hpp.

Public Methods

 DBOBJGetStatementSAXBuilder (XMLFlowContext *p_pContext, const DBOBJDefinitionNode *p_pDBOBJDefNode)
 Constructor. Inits input data members.

 ~DBOBJGetStatementSAXBuilder ()
 Destructor. Releases private data members.

DBOBJGetStatementNodegetStatementRoot ()
 Returns root node of the statement's objects tree.

void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
 Receive notification of the beginning of an element. Builds statements nodes and clauses. Attach nodes to the objects tree.

void characters (const XMLCh *const chars, const unsigned int length)
 Receive notification of character data. Fills clauses values.

void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 Receive notification of the end of an element. Attach clauses to objects tree and set statement root for last node closed.

void startDocument ()
void endDocument ()
void ignorableWhitespace (const XMLCh *const chars, const unsigned int length)
void processingInstruction (const XMLCh *const target, const XMLCh *const data)
void setDocumentLocator (const Locator *const locator)
void startPrefixMapping (const XMLCh *const prefix, const XMLCh *const uri)
void endPrefixMapping (const XMLCh *const prefix)
void skippedEntity (const XMLCh *const name)

Static Public Methods

DBOBJGetStatementNodebuildDBOBJGetStatement (XMLFlowContext *p_pContext, XMLStreamProvider *p_pInput, const DBOBJDefinitionNode *p_pDBOBJDefNode)
 Launches input XML parsing and returns corresponding statement objects tree.


Constructor & Destructor Documentation

DBOBJGetStatementSAXBuilder::DBOBJGetStatementSAXBuilder XMLFlowContext   p_pContext,
const DBOBJDefinitionNode   p_pDBOBJDefNode
 

Constructor. Inits input data members.

Definition at line 341 of file dbobjgetstatement.cpp.

References DEBUG_CREATE.

Referenced by buildDBOBJGetStatement().

DBOBJGetStatementSAXBuilder::~DBOBJGetStatementSAXBuilder  
 

Destructor. Releases private data members.

Definition at line 354 of file dbobjgetstatement.cpp.

References DEBUG_DEL.


Member Function Documentation

DBOBJGetStatementNode * DBOBJGetStatementSAXBuilder::buildDBOBJGetStatement XMLFlowContext   p_pContext,
XMLStreamProvider   p_pInput,
const DBOBJDefinitionNode   p_pDBOBJDefNode
[static]
 

Launches input XML parsing and returns corresponding statement objects tree.

Parameters:
p_pInputXMLStreamBuffer (XMLStreamBuffer*) Input XML buffer.
p_pDBOBJDefNode (DBOBJDefinitionNode*) Root node of object's definition.
Returns:
(DBOBJGetStatementNode*) Root node of the statement objects tree.

Definition at line 294 of file dbobjgetstatement.cpp.

References CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, DBOBJGetStatementSAXBuilder(), DEBUG_IN, DEBUG_OUT, getStatementRoot(), ON_XML_FLOW_ERROR_DO, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, and WATCH_XML_FLOW_ERROR.

void DBOBJGetStatementSAXBuilder::characters const XMLCh *const    chars,
const unsigned int    length
 

Receive notification of character data. Fills clauses values.

Parameters:
chars The characters from the XML document.
length The number of characters to read from the array.
Exceptions:
SAXException Any SAX exception, possibly wrapping another exception.

Definition at line 533 of file dbobjgetstatement.cpp.

References CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, concatCharBuffer(), DEBUG_IN, DEBUG_OUT, XMLFlowContext::getTranscoder(), ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, releaseCharBuffer(), trimCharBuffer(), WATCH_XML_FLOW_ERROR, and XSTR().

void DBOBJGetStatementSAXBuilder::endDocument   [inline]
 

Definition at line 374 of file dbobjgetstatement.hpp.

void DBOBJGetStatementSAXBuilder::endElement const XMLCh *const    uri,
const XMLCh *const    localname,
const XMLCh *const    qname
 

Receive notification of the end of an element. Attach clauses to objects tree and set statement root for last node closed.

Parameters:
uri The URI of the asscioated namespace for this element
localname The local part of the element name
qname The QName of this element
Exceptions:
SAXException Any SAX exception, possibly wrapping another exception.

Definition at line 497 of file dbobjgetstatement.cpp.

References DBOBJGetStatementNode::appendFilter(), DBOBJGetStatementNode::appendOrder(), CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, DBOBJGETSTMT_TYPE_FILTER, DBOBJGETSTMT_TYPE_ORDER, DEBUG_IN, DEBUG_OUT, VAarray< DBOBJGetStatementNode * >::empty(), ON_XML_FLOW_ERROR_THROW, VAarray< DBOBJGetStatementNode * >::pop(), PREP_CATCH_XML_FLOW_ERROR, VAarray< DBOBJGetStatementNode * >::top(), and WATCH_XML_FLOW_ERROR.

void DBOBJGetStatementSAXBuilder::endPrefixMapping const XMLCh *const    prefix [inline]
 

Definition at line 379 of file dbobjgetstatement.hpp.

DBOBJGetStatementNode * DBOBJGetStatementSAXBuilder::getStatementRoot  
 

Returns root node of the statement's objects tree.

Returns:
(DBOBJGetStatementNode*) Root node of the statement's objects tree.

Definition at line 369 of file dbobjgetstatement.cpp.

References DEBUG_FUNC.

Referenced by buildDBOBJGetStatement().

void DBOBJGetStatementSAXBuilder::ignorableWhitespace const XMLCh *const    chars,
const unsigned int    length
[inline]
 

Definition at line 375 of file dbobjgetstatement.hpp.

void DBOBJGetStatementSAXBuilder::processingInstruction const XMLCh *const    target,
const XMLCh *const    data
[inline]
 

Definition at line 376 of file dbobjgetstatement.hpp.

void DBOBJGetStatementSAXBuilder::setDocumentLocator const Locator *const    locator [inline]
 

Definition at line 377 of file dbobjgetstatement.hpp.

void DBOBJGetStatementSAXBuilder::skippedEntity const XMLCh *const    name [inline]
 

Definition at line 380 of file dbobjgetstatement.hpp.

void DBOBJGetStatementSAXBuilder::startDocument   [inline]
 

Definition at line 373 of file dbobjgetstatement.hpp.

void DBOBJGetStatementSAXBuilder::startElement const XMLCh *const    uri,
const XMLCh *const    localname,
const XMLCh *const    qname,
const Attributes &    attrs
 

Receive notification of the beginning of an element. Builds statements nodes and clauses. Attach nodes to the objects tree.

Parameters:
uri The URI of the asscioated namespace for this element
localname The local part of the element name
qname The QName of this element
attrs The attributes attached to the element, if any.
Exceptions:
SAXException Any SAX exception, possibly wrapping another exception.
XMLFlowException ERRCODE_CAUSE_MISSINGREF

Definition at line 381 of file dbobjgetstatement.cpp.

References DBOBJGetStatementNode::appendChild(), CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, DBOBJGetStatementClause, DBOBJGETSTMT_TYPE_FILTER, DBOBJGETSTMT_TYPE_ORDER, DEBUG_IN, DEBUG_OUT, VAarray< DBOBJGetStatementNode * >::empty(), DBOBJDefinitionNode::getChildNode(), DBOBJGetStatementNode::getDefinition(), DBOBJDefinitionNode::getField(), DBOBJDefinitionNode::getName(), XMLFlowContext::getTranscoder(), importCharBuffer(), ON_XML_FLOW_ERROR_DO, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, VAarray< DBOBJGetStatementNode * >::push(), SAX_getAttrValue(), DBOBJGetStatementNode::setParent(), THROW_XMLFLOW_EXCEPTION, VAarray< DBOBJGetStatementNode * >::top(), WATCH_XML_FLOW_ERROR, XMLPROCESSOR_MAX_ATTRVAL_SIZE, XMLPROCESSOR_MAX_TAG_SIZE, and XSTR().

void DBOBJGetStatementSAXBuilder::startPrefixMapping const XMLCh *const    prefix,
const XMLCh *const    uri
[inline]
 

Definition at line 378 of file dbobjgetstatement.hpp.


The documentation for this class was generated from the following files:
Generated on Sat Oct 4 13:23:43 2003 for XDFLengine by doxygen1.3-rc2