|
||||||||||
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.XmlToData
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.
Inner Class Summary | |
class |
XmlToData.ColumnValue
Deprecated. |
class |
XmlToData.DataRow
Deprecated. |
Field Summary | |
private java.util.Vector |
data
Deprecated. |
private Database |
database
Deprecated. |
private org.xml.sax.InputSource |
dataDTD
Deprecated. |
private java.io.File |
dtdFile
Deprecated. |
private java.lang.String |
dtdFileName
Deprecated. |
private java.lang.String |
errorMessage
Deprecated. |
Constructor Summary | |
XmlToData(Database database,
java.lang.String dtdFilePath)
Deprecated. Default custructor |
Method Summary | |
void |
error(org.xml.sax.SAXParseException spe)
Deprecated. Error callback. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Deprecated. Fatal error callback. |
org.xml.sax.InputSource |
getInputSource(java.lang.String urlString)
Deprecated. get an InputSource for an URL String |
java.util.List |
parseFile(java.lang.String xmlFile)
Deprecated. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Deprecated. called by the XML parser |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes 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, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Database database
private java.lang.String errorMessage
private java.util.Vector data
private java.lang.String dtdFileName
private java.io.File dtdFile
private org.xml.sax.InputSource dataDTD
Constructor Detail |
public XmlToData(Database database, java.lang.String dtdFilePath) throws java.net.MalformedURLException, java.io.IOException
Method Detail |
public java.util.List parseFile(java.lang.String xmlFile)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes attributes)
startElement
in class org.xml.sax.helpers.DefaultHandler
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.public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
public org.xml.sax.InputSource getInputSource(java.lang.String urlString)
urlString
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |