

Public Member Functions | |
| WriteXMLHandler (Map propertyMap) | |
| void | writeXML (Writer writer) throws AcsJCDBFieldDoesNotExistEx, AcsJCDBExceptionEx |
| void | startElement (String uri, String localName, String qName, Attributes attributes) throws SAXException |
| void | comment (char[] ch, int start, int length) throws SAXException |
| void | endCDATA () throws SAXException |
| void | endDTD () throws SAXException |
| void | endEntity (String name) throws SAXException |
| void | startCDATA () throws SAXException |
| void | startDTD (String name, String publicId, String systemId) throws SAXException |
| void | startEntity (String name) throws SAXException |
Private Member Functions | |
| void | write (String string) throws IOException |
| void | writeComment () throws IOException |
| void | setField (String strFieldName, String value, boolean asArray) throws AcsJCDBFieldDoesNotExistEx |
| void | writeIndent (int indent) throws IOException |
| void | writeNode (XMLTreeNode node, int indent) throws IOException |
| void | putArrayMap (String key, String value) |
Private Attributes | |
| Writer | writer = null |
| Map | propertyMap = null |
| String | existingComment = null |
| HashMap | arrayMap = null |
Extended handler that keep track of arrays inside nodes and can write xml to the given writer after changes are appliead.
| com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::WriteXMLHandler | ( | Map | propertyMap | ) | [inline] |
Creates a new WriteXMLHandler object.
| propertyMap | map of changed properties |
References com::cosylab::cdb::jdal::XMLHandler::logger, and com::cosylab::cdb::jdal::XMLHandler::setMarkArrays().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::comment | ( | char[] | ch, | |
| int | start, | |||
| int | length | |||
| ) | throws SAXException [inline] |
References existingComment.
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::endCDATA | ( | ) | throws SAXException [inline] |
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::endDTD | ( | ) | throws SAXException [inline] |
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::endEntity | ( | String | name | ) | throws SAXException [inline] |
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::putArrayMap | ( | String | key, | |
| String | value | |||
| ) | [inline, private] |
References arrayMap.
Referenced by startElement().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::setField | ( | String | strFieldName, | |
| String | value, | |||
| boolean | asArray | |||
| ) | throws AcsJCDBFieldDoesNotExistEx [inline, private] |
References com::cosylab::cdb::jdal::XMLTreeNode::m_fieldMap, com::cosylab::cdb::jdal::XMLTreeNode::m_name, com::cosylab::cdb::jdal::XMLHandler::m_rootNode, com::cosylab::cdb::jdal::XMLTreeNode::m_subNodesMap, and alma::cdbErrType::wrappers::AcsJCDBFieldDoesNotExistEx::setFieldName().
Referenced by writeXML().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::startCDATA | ( | ) | throws SAXException [inline] |
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::startDTD | ( | String | name, | |
| String | publicId, | |||
| String | systemId | |||
| ) | throws SAXException [inline] |
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::startElement | ( | String | uri, | |
| String | local, | |||
| String | raw, | |||
| Attributes | attrs | |||
| ) | throws SAXException [inline] |
Start element.
Reimplemented from com::cosylab::cdb::jdal::XMLHandler.
References com::cosylab::cdb::jdal::XMLTreeNode::isArrayNode(), com::cosylab::cdb::jdal::XMLTreeNode::m_name, com::cosylab::cdb::jdal::XMLHandler::m_parent, and putArrayMap().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::startEntity | ( | String | name | ) | throws SAXException [inline] |
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::write | ( | String | string | ) | throws IOException [inline, private] |
References writer.
Referenced by writeComment(), writeIndent(), writeNode(), and writeXML().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeComment | ( | ) | throws IOException [inline, private] |
References existingComment, and write().
Referenced by writeXML().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeIndent | ( | int | indent | ) | throws IOException [inline, private] |
References write().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeNode | ( | XMLTreeNode | node, | |
| int | indent | |||
| ) | throws IOException [inline, private] |
References write().
Referenced by writeXML().
| void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeXML | ( | Writer | writer | ) | throws AcsJCDBFieldDoesNotExistEx, AcsJCDBExceptionEx [inline] |
Writes content of xml to the specified writer
| writer | writer to write to |
| CDBFieldDoesNotExistEx | ||
| CDBExceptionEx |
References arrayMap, com::cosylab::cdb::jdal::XMLHandler::m_rootNode, propertyMap, setField(), write(), writeComment(), writeNode(), and writer.
Referenced by com::cosylab::cdb::jdal::WDALImpl::saveChanges().
HashMap com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::arrayMap = null [private] |
Referenced by putArrayMap(), and writeXML().
String com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::existingComment = null [private] |
Referenced by comment(), and writeComment().
Map com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::propertyMap = null [private] |
Referenced by writeXML().
Writer com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writer = null [private] |
Referenced by write(), and writeXML().
1.6.2