|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--org.apache.turbine.torque.engine.database.transform.XmlToAppData
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.
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 |
|
Methods inherited from interface org.xml.sax.DocumentHandler |
characters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, startDocument |
Field Detail |
private AppData app
private Database currDB
private Table currTable
private Column currColumn
private ForeignKey currFK
private Index currIndex
private Unique currUnique
private boolean firstPass
private Table foreignTable
private java.lang.String errorMessage
Constructor Detail |
public XmlToAppData()
Method Detail |
public AppData parseFile(java.lang.String xmlFile)
public void endElement(java.lang.String s) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
public void startElement(java.lang.String rawName, org.xml.sax.AttributeList attributes)
startElement
in interface org.xml.sax.DocumentHandler
public void warning(org.xml.sax.SAXParseException spe)
warning
in class org.xml.sax.helpers.DefaultHandler
spe
- The parse exception that caused the callback to be
invoked.public void error(org.xml.sax.SAXParseException spe)
error
in class org.xml.sax.helpers.DefaultHandler
spe
- The parse exception that caused the callback to be
invoked.public void fatalError(org.xml.sax.SAXParseException spe)
fatalError
in class org.xml.sax.helpers.DefaultHandler
spe
- The parse exception that caused the callback to be
invoked.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |