|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.torque.engine.database.transform.XmlToData
public class XmlToData
A Class that is used to parse an input xml schema file and creates and AppData java structure.
| Nested Class Summary | |
|---|---|
class |
XmlToData.ColumnValue
|
class |
XmlToData.DataRow
|
| Constructor Summary | |
|---|---|
XmlToData(Database database,
java.lang.String dtdFilePath)
Default custructor |
|
| Method Summary | |
|---|---|
org.xml.sax.InputSource |
getInputSource(java.lang.String urlString)
get an InputSource for an URL String |
java.util.List |
parseFile(java.lang.String xmlFile)
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
called by the XML parser |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attributes)
Handles opening elements of the xml file. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlToData(Database database,
java.lang.String dtdFilePath)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOException| Method Detail |
|---|
public java.util.List parseFile(java.lang.String xmlFile)
throws java.lang.Exception
java.lang.Exception
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
resolveEntity in interface org.xml.sax.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public org.xml.sax.InputSource getInputSource(java.lang.String urlString)
throws java.io.IOException
urlString -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||