|
||||||||||
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.services.intake.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.
Constructor Summary | |
XmlToAppData()
Default custructor |
Method Summary | |
void |
characters(char[] mesgArray,
int start,
int length)
Handles the character data, which we are using to specify the error message. |
void |
error(org.xml.sax.SAXParseException spe)
Callback function for the xml parser to give errors. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Callback function for the xml parser to give fatalErrors. |
AppData |
parseFile(java.lang.String xmlFile)
Parse and xml input file and returns a newly created and populated AppData structure |
AppData |
parseFile(java.lang.String xmlFile,
boolean skipValidation)
Parse and xml input file and returns a newly created and populated AppData structure |
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. |
void |
warning(org.xml.sax.SAXParseException spe)
Callback function for the xml parser to give warnings. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlToAppData()
Method Detail |
public AppData parseFile(java.lang.String xmlFile) throws java.lang.Exception
public AppData parseFile(java.lang.String xmlFile, boolean skipValidation) throws java.lang.Exception
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 characters(char[] mesgArray, int start, int length)
characters
in class org.xml.sax.helpers.DefaultHandler
public void warning(org.xml.sax.SAXParseException spe)
warning
in class org.xml.sax.helpers.DefaultHandler
spe
- a SAXParseException
valuepublic void error(org.xml.sax.SAXParseException spe)
error
in class org.xml.sax.helpers.DefaultHandler
spe
- a SAXParseException
valuepublic void fatalError(org.xml.sax.SAXParseException spe)
fatalError
in class org.xml.sax.helpers.DefaultHandler
spe
- a SAXParseException
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |