|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
jpl.pds.parser.SAXValidation
public class SAXValidation
Use SAX parser and schema file to validate the XML version of the product file. The handlers are overridden to capture the error messages.
Constructor Summary | |
---|---|
SAXValidation(RunLog runLog)
Create Sax Validation object. |
Method Summary | |
---|---|
void |
error(SAXParseException ex)
Overrides error and print error message. |
void |
fatalError(SAXParseException ex)
Overrides fatalError and prints fatal error message. |
boolean |
validateFile(Document document,
String xsdFilename)
Validates the product XML file using the DS schema. |
void |
warning(SAXParseException ex)
Overrides warnings and print warning message. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAXValidation(RunLog runLog)
runLog
- XML output stream.Method Detail |
---|
public final boolean validateFile(Document document, String xsdFilename)
document
- Product in DOM format.xsdFilename
- Data Set XSD schema filename.runLog
- RunLog object used for writing messages to cmd window and output log.
public final void warning(SAXParseException ex)
warning
in interface ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
ex
- Exception information.public final void error(SAXParseException ex)
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
ex
- Exception information.public final void fatalError(SAXParseException ex)
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
ex
- Exception information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |