|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.xml.AbstractXMLParser
public abstract class AbstractXMLParser
(c) copyright 2002-2005-2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Constructor Summary | |
---|---|
AbstractXMLParser(URL url,
URL schema,
String schemaNamespace,
boolean validateSchema)
Parses an XML file and validates it against a schema XSD. |
Method Summary | |
---|---|
protected org.jdom.Element |
parse()
This method carries out the task of parsing an XML file and validates it against a schema XSD. |
protected abstract void |
parse(org.jdom.Element xmlRootElement)
The actual parsing method to implement, based on the availability of the entire JDOM tree, starting from the root element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXMLParser(URL url, URL schema, String schemaNamespace, boolean validateSchema)
url
- the URL of the XML file to read.schema
- the URL of the XSD schema file to validate against.schemaNamespace
- the namespace of the schemavalidateSchema
- whether to validate the schema file.Method Detail |
---|
protected org.jdom.Element parse() throws Exception
validation
is
true.
Exception
- on failureprotected abstract void parse(org.jdom.Element xmlRootElement) throws Exception
xmlRootElement
- the root element
Exception
- on failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |