

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 |
| StringBuffer | m_arrayContent = new StringBuffer(64) |
| 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 |
| com::cosylab::cdb::jdal::XMLHandler::XMLHandler | ( | boolean | toString, | |
| Logger | logger | |||
| ) | [inline] |
References m_toString.
Referenced by getChild().
| 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] |
References autoCloseStartingElement, elementNames, endElement(), and startElements.
| void com::cosylab::cdb::jdal::XMLHandler::endElement | ( | String | uri, | |
| String | local, | |||
| String | raw | |||
| ) | throws SAXException [inline] |
End element.
References autoCloseStartingElement, elementNames, com::cosylab::cdb::jdal::XMLTreeNode::m_parent, m_parent, m_toString, m_xmlString, and startElements.
Referenced by closeElement().
| 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
| b |
References autoCloseStartingElement.
Referenced by com::cosylab::cdb::jdal::DALImpl::loadRecords().
| void com::cosylab::cdb::jdal::XMLHandler::setFirstElement | ( | String | string | ) | [inline] |
| string |
References firstElementName.
| void com::cosylab::cdb::jdal::XMLHandler::setMarkArrays | ( | int | mode | ) | [inline] |
| markArrays |
References markArrays.
Referenced by com::cosylab::cdb::jdal::DALImpl::loadRecord(), com::cosylab::cdb::jdal::DALImpl::loadRecords(), and com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::WriteXMLHandler().
| void com::cosylab::cdb::jdal::XMLHandler::startDocument | ( | ) | throws SAXException [inline] |
References firstElement, headerEmited, m_toString, and m_xmlString.
| void com::cosylab::cdb::jdal::XMLHandler::startElement | ( | String | uri, | |
| String | local, | |||
| String | raw, | |||
| Attributes | attrs | |||
| ) | throws SAXException [inline] |
Start element.
Reimplemented in com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler.
References autoCloseStartingElement, elementID, elementNames, firstElement, firstElementName, com::cosylab::cdb::jdal::XMLTreeNode::m_fieldMap, com::cosylab::cdb::jdal::XMLTreeNode::m_name, com::cosylab::cdb::jdal::XMLTreeNode::m_nameSpace, m_parent, m_rootNode, com::cosylab::cdb::jdal::XMLTreeNode::m_subNodesMap, m_toString, m_xmlString, markArrays, prefixes, com::cosylab::cdb::jdal::XMLTreeNode::setArrayNode(), com::cosylab::cdb::jdal::XMLTreeNode::setDynamicNode(), com::cosylab::cdb::jdal::XMLTreeNode::setMapNode(), and startElements.
| 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] |
References m_rootNode, m_toString, m_xmlString, and com::cosylab::cdb::jdal::XMLTreeNode::toString().
Referenced by com::cosylab::cdb::jdal::DALImpl::internal_get_DAO().
boolean com::cosylab::cdb::jdal::XMLHandler::autoCloseStartingElement = true [private] |
Referenced by closeElement(), endElement(), setAutoCloseStartingElement(), and startElement().
int com::cosylab::cdb::jdal::XMLHandler::elementID = 0 [private] |
Referenced by startElement().
ArrayList com::cosylab::cdb::jdal::XMLHandler::elementNames = null [private] |
Referenced by closeElement(), endElement(), and startElement().
boolean com::cosylab::cdb::jdal::XMLHandler::firstElement = true [private] |
Referenced by startDocument(), and startElement().
String com::cosylab::cdb::jdal::XMLHandler::firstElementName = null [private] |
Referenced by setFirstElement(), and startElement().
boolean com::cosylab::cdb::jdal::XMLHandler::headerEmited = false [private] |
Referenced by startDocument().
final Logger com::cosylab::cdb::jdal::XMLHandler::logger [private] |
Referenced by error(), getChild(), and com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::WriteXMLHandler().
StringBuffer com::cosylab::cdb::jdal::XMLHandler::m_arrayContent = new StringBuffer(64) [private] |
| String com::cosylab::cdb::jdal::XMLHandler::m_errorString = null |
Referenced by com::cosylab::cdb::browser::BrowserJNDIXMLContext::BrowserJNDIXMLContext(), error(), com::cosylab::cdb::client::CDBAccess::internalConnect(), com::cosylab::cdb::jdal::JNDIXMLContext::JNDIXMLContext(), com::cosylab::cdb::jdal::DALImpl::loadRecord(), com::cosylab::cdb::DALRead::main(), com::cosylab::cdb::CDBDefault::main(), and com::cosylab::cdb::jdal::WDALImpl::validateXML().
Referenced by endElement(), startElement(), and com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::startElement().
Referenced by com::cosylab::cdb::browser::BrowserJNDIXMLContext::BrowserJNDIXMLContext(), com::cosylab::cdb::jdal::DALImpl::get_DAO_Servant(), getChild(), com::cosylab::cdb::client::CDBAccess::internalConnect(), com::cosylab::cdb::jdal::JNDIXMLContext::JNDIXMLContext(), com::cosylab::cdb::jdal::DALImpl::list_daos(), com::cosylab::cdb::DALRead::main(), com::cosylab::cdb::CDBDefault::main(), com::cosylab::cdb::jdal::WDALImpl::set_DAO(), com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::setField(), startElement(), toString(), and com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeXML().
boolean com::cosylab::cdb::jdal::XMLHandler::m_toString [static, private] |
Referenced by characters(), endElement(), startDocument(), startElement(), toString(), and XMLHandler().
| StringBuffer com::cosylab::cdb::jdal::XMLHandler::m_xmlString = new StringBuffer(256) |
Referenced by characters(), endElement(), startDocument(), startElement(), and toString().
int com::cosylab::cdb::jdal::XMLHandler::markArrays = 0 [private] |
Referenced by setMarkArrays(), and startElement().
ArrayList com::cosylab::cdb::jdal::XMLHandler::prefixes = new ArrayList() [private] |
Referenced by startElement(), and startPrefixMapping().
ArrayList com::cosylab::cdb::jdal::XMLHandler::startElements = null [private] |
Referenced by closeElement(), endElement(), and startElement().
1.6.2