com::cosylab::cdb::jdal::XMLHandler Class Reference

Inheritance diagram for com::cosylab::cdb::jdal::XMLHandler:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::cdb::jdal::XMLHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLHandler (boolean toString, Logger logger)
void startDocument () throws SAXException
void startElement (String uri, String local, String raw, Attributes attrs) throws SAXException
void endElement (String uri, String local, String raw) throws SAXException
void characters (char buf[], int offset, int len) throws SAXException
void startPrefixMapping (String prefix, String uri) throws SAXException
void error (SAXParseException e)
void setAutoCloseStartingElement (boolean b)
void closeElement () throws SAXException
void setFirstElement (String string)
void setMarkArrays (int mode)
XMLHandler getChild (String curl) throws AcsJCDBRecordDoesNotExistEx
String toString (boolean withMapNames)

Public Attributes

XMLTreeNode m_rootNode = null
String m_errorString = null
StringBuffer m_xmlString = new StringBuffer(256)

Protected Attributes

XMLTreeNode m_parent

Private Attributes

final Logger logger
int elementID = 0
boolean headerEmited = false
boolean autoCloseStartingElement = true
boolean firstElement = true
ArrayList startElements = null
ArrayList elementNames = null
String firstElementName = null
ArrayList prefixes = new ArrayList()
int markArrays = 0

Static Private Attributes

static boolean m_toString

Constructor & Destructor Documentation

com::cosylab::cdb::jdal::XMLHandler::XMLHandler ( boolean  toString,
Logger  logger 
) [inline]

References m_toString.

Referenced by getChild().


Member Function Documentation

void com::cosylab::cdb::jdal::XMLHandler::characters ( char  buf[],
int  offset,
int  len 
) throws SAXException [inline]

References m_toString, and m_xmlString.

void com::cosylab::cdb::jdal::XMLHandler::closeElement (  )  throws SAXException [inline]
void com::cosylab::cdb::jdal::XMLHandler::endElement ( String  uri,
String  local,
String  raw 
) throws SAXException [inline]
void com::cosylab::cdb::jdal::XMLHandler::error ( SAXParseException  e  )  [inline]

References logger, and m_errorString.

XMLHandler com::cosylab::cdb::jdal::XMLHandler::getChild ( String  curl  )  throws AcsJCDBRecordDoesNotExistEx [inline]
void com::cosylab::cdb::jdal::XMLHandler::setAutoCloseStartingElement ( boolean  b  )  [inline]

Should we automatically close ending node

Parameters:
b 

References autoCloseStartingElement.

Referenced by com::cosylab::cdb::jdal::DALImpl::loadRecords().

void com::cosylab::cdb::jdal::XMLHandler::setFirstElement ( String  string  )  [inline]
Parameters:
string 

References firstElementName.

void com::cosylab::cdb::jdal::XMLHandler::setMarkArrays ( int  mode  )  [inline]
void com::cosylab::cdb::jdal::XMLHandler::startDocument (  )  throws SAXException [inline]
void com::cosylab::cdb::jdal::XMLHandler::startElement ( String  uri,
String  local,
String  raw,
Attributes  attrs 
) throws SAXException [inline]
void com::cosylab::cdb::jdal::XMLHandler::startPrefixMapping ( String  prefix,
String  uri 
) throws SAXException [inline]

References prefixes.

String com::cosylab::cdb::jdal::XMLHandler::toString ( boolean  withMapNames  )  [inline]

Member Data Documentation

Referenced by startElement().

Referenced by startDocument(), and startElement().

Referenced by setFirstElement(), and startElement().

Referenced by startDocument().

StringBuffer com::cosylab::cdb::jdal::XMLHandler::m_xmlString = new StringBuffer(256)

Referenced by setMarkArrays(), and startElement().

ArrayList com::cosylab::cdb::jdal::XMLHandler::prefixes = new ArrayList() [private]

Referenced by startElement(), and startPrefixMapping().


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

Generated by  doxygen 1.6.2