Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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


Member Function Documentation

void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::comment char[]  ch,
int  start,
int  length
throws SAXException [inline]
 

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]
 

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  localName,
String  qName,
Attributes  attributes
throws SAXException [inline]
 

Start element.

Reimplemented from com::cosylab::cdb::jdal::XMLHandler.

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]
 

void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeComment  )  throws IOException [inline, private]
 

void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeIndent int  indent  )  throws IOException [inline, private]
 

void com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writeNode XMLTreeNode  node,
int  indent
throws IOException [inline, private]
 

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 


Member Data Documentation

HashMap com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::arrayMap = null [private]
 

String com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::existingComment = null [private]
 

Map com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::propertyMap = null [private]
 

Writer com::cosylab::cdb::jdal::WDALImpl::WriteXMLHandler::writer = null [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:24 2009 for ACS Java API by doxygen 1.3.8