com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler Class Reference

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

List of all members.

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

Detailed Description

Extended handler that keep track of arrays inside nodes and can write xml to the given writer after changes are appliead.


Constructor & Destructor Documentation

com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::WriteXMLHandler ( Map  propertyMap  )  [inline]

Creates a new WriteXMLHandler object.

Parameters:
propertyMap map of changed properties

References com::cosylab::cdb::jdal::XMLHandler::logger, and com::cosylab::cdb::jdal::XMLHandler::setMarkArrays().


Member Function Documentation

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]
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]
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

Parameters:
writer writer to write to
Exceptions:
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().


Member Data Documentation

Referenced by putArrayMap(), and writeXML().

Referenced by comment(), and writeComment().

Referenced by writeXML().

Referenced by write(), and writeXML().


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

Generated by  doxygen 1.6.2