| java.lang.Object org.xml.sax.helpers.DefaultHandler org.continuent.sequoia.controller.xml.DatabasesParser
DatabasesParser | public DatabasesParser(Controller controller) throws SAXException(Code) | | Creates a new DatabasesParser instance. This method
Instanciates also a new DatabasesParser .
Parameters: controller - Controller to load the Virtual Databaseinto throws: SAXException - if an error occurs |
DatabasesParser | public DatabasesParser(Controller controller, String virtualName, int autoLoad, String checkPoint) throws SAXException(Code) | | Creates a new DatabasesParser instance. This method
Instanciates also a new DatabasesParser . This instance will
look only for the specified database.
Parameters: controller - Controller to load the Virtual Databaseinto Parameters: virtualName - the specified VirtualDatabase to load. Parameters: autoLoad - autoenable switch Parameters: checkPoint - checkpoint information throws: SAXException - if an error occurs |
endElement | public void endElement(String uri, String localName, String name) throws SAXException(Code) | | DatabasesParser for end of element.
Parameters: uri - name space URI Parameters: localName - local name Parameters: name - element raw name exception: SAXException - if an error occurs |
error | public void error(SAXParseException e) throws SAXException(Code) | | Handles notification of a recoverable parser error.
Parameters: e - the warning information encoded as an exception. exception: SAXException - any SAX exception, possibly wrapping anotherexception |
fatalError | public void fatalError(SAXParseException e) throws SAXException(Code) | | Handles notification of a non-recoverable parser error.
Parameters: e - the warning information encoded as an exception. exception: SAXException - any SAX exception, possibly wrapping anotherexception. |
prepareDB | public void prepareDB(String virtualName, int autoLoad, String checkPoint)(Code) | | If this method is called. Only the specified DB of the Xml file will be
loaded.
Parameters: virtualName - VirtualDatabase name Parameters: autoLoad - autoenable switch Parameters: checkPoint - checkpoint for recovery |
readXML | public void readXML(String xml, boolean validateBeforeParsing) throws IOException, SAXException(Code) | | Validate an XML content according to Sequoia DTD.
Parameters: xml - content Parameters: validateBeforeParsing - if true validate the document before theparsing throws: IOException - if an error occurs throws: SAXException - if an error occurs |
startElement | public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException(Code) | | Analyzes an element first line.
Parameters: uri - name space URI Parameters: localName - local name Parameters: name - element raw name Parameters: atts - element attributes exception: SAXException - if an error occurs |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|