org.jasig.portal.car
Class DatabaseTagHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jasig.portal.car.DatabaseTagHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class DatabaseTagHandler
extends DefaultHandler

Processes the database tag looking for two element that should each contain a file path suitable for loading via classloader.findResource(). The "tables" tag should point to a file having the appropriate format for creating tables in the portal's database using DbLoader and hence should be structured identically to uPortal's default data structure definition file tables.xml. The "data" tag is optional but if included should point to file having the appropriate format for loading with DbLoader the tables created by tables.xml and hence should be structured identically to uPortal's default data set file data.xml.

Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $
Author:
Mark Boyd mark.boyd@engineer.com

Method Summary
 void characters(char[] ch, int start, int length)
          Handle the characters event to capture textual content for elements.
 void endElement(String namespaceURI, String localName, String qName)
          Handle the closing element event.
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
          Handle start element events.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Handle start element events.

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Handle the characters event to capture textual content for elements.

Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
                throws SAXException
Handle the closing element event.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException


Copyright © 2010 Jasig. All Rights Reserved.