org.apache.turbine.torque.engine.database.transform
Class XmlToAppData

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.apache.turbine.torque.engine.database.transform.XmlToAppData
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

Deprecated. use turbine-torque

public class XmlToAppData
extends org.xml.sax.helpers.DefaultHandler
implements org.xml.sax.DocumentHandler

A Class that is used to parse an input xml schema file and creates and AppData java structure. It uses apache Xerces to do the xml parsing.

Version:
$Id: XmlToAppData.java,v 1.4 2002/02/26 22:15:44 fedor Exp $
Author:
Leon Messerschmidt, Jason van Zyl, Martin Poeschl

Field Summary
private  AppData app
          Deprecated.  
private  Column currColumn
          Deprecated.  
private  Database currDB
          Deprecated.  
private  ForeignKey currFK
          Deprecated.  
private  Index currIndex
          Deprecated.  
private  Table currTable
          Deprecated.  
private  Unique currUnique
          Deprecated.  
private  java.lang.String errorMessage
          Deprecated.  
private  boolean firstPass
          Deprecated.  
private  Table foreignTable
          Deprecated.  
 
Constructor Summary
XmlToAppData()
          Deprecated. Default custructor
 
Method Summary
 void endElement(java.lang.String s)
          Deprecated.  
 void error(org.xml.sax.SAXParseException spe)
          Deprecated. Error callback.
 void fatalError(org.xml.sax.SAXParseException spe)
          Deprecated. Fatal error callback.
 AppData parseFile(java.lang.String xmlFile)
          Deprecated. Parse and xml input file and returns a newly created and populated AppData structure
 void startElement(java.lang.String rawName, org.xml.sax.AttributeList attributes)
          Deprecated. Handles opening elements of the xml file.
 void warning(org.xml.sax.SAXParseException spe)
          Deprecated. Warning callback.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.DocumentHandler
characters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, startDocument
 

Field Detail

app

private AppData app
Deprecated. 

currDB

private Database currDB
Deprecated. 

currTable

private Table currTable
Deprecated. 

currColumn

private Column currColumn
Deprecated. 

currFK

private ForeignKey currFK
Deprecated. 

currIndex

private Index currIndex
Deprecated. 

currUnique

private Unique currUnique
Deprecated. 

firstPass

private boolean firstPass
Deprecated. 

foreignTable

private Table foreignTable
Deprecated. 

errorMessage

private java.lang.String errorMessage
Deprecated. 
Constructor Detail

XmlToAppData

public XmlToAppData()
Deprecated. 
Default custructor
Method Detail

parseFile

public AppData parseFile(java.lang.String xmlFile)
Deprecated. 
Parse and xml input file and returns a newly created and populated AppData structure

endElement

public void endElement(java.lang.String s)
                throws org.xml.sax.SAXException
Deprecated. 
Specified by:
endElement in interface org.xml.sax.DocumentHandler

startElement

public void startElement(java.lang.String rawName,
                         org.xml.sax.AttributeList attributes)
Deprecated. 
Handles opening elements of the xml file.
Specified by:
startElement in interface org.xml.sax.DocumentHandler

warning

public void warning(org.xml.sax.SAXParseException spe)
Deprecated. 
Warning callback.
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
Throws:
spe - The parse exception that caused the callback to be invoked.

error

public void error(org.xml.sax.SAXParseException spe)
Deprecated. 
Error callback.
Overrides:
error in class org.xml.sax.helpers.DefaultHandler
Throws:
spe - The parse exception that caused the callback to be invoked.

fatalError

public void fatalError(org.xml.sax.SAXParseException spe)
Deprecated. 
Fatal error callback.
Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
Throws:
spe - The parse exception that caused the callback to be invoked.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.