com.counterclaim.openefm.lxml.validator
Class SimpleLxmlValidator
java.lang.Object
|
+--com.counterclaim.openefm.core.AbstractOpenEFMComponent
|
+--com.counterclaim.openefm.lxml.validator.SimpleLxmlValidator
- All Implemented Interfaces:
- LxmlValidator, OpenEFMComponent
- public class SimpleLxmlValidator
- extends AbstractOpenEFMComponent
- implements LxmlValidator
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLxmlValidator
public SimpleLxmlValidator()
getDtdFile
public java.lang.String getDtdFile()
setDtdFile
public void setDtdFile(java.lang.String dtdFile)
validateFiling
public ValidationFault[] validateFiling(LxmlFiling filing)
- Parse the content of a filing and validate it against the DTD.
No attempt at checking the content of the message is made.
- Specified by:
validateFiling
in interface LxmlValidator
- Parameters:
filing
- which we want to validate- Returns:
- an array of
ValidationFault
s or null if OK
getSAXParser
public javax.xml.parsers.SAXParser getSAXParser()
- Return the SAXParser we will use to parse the input stream. If there
is a problem creating the parser, return
null
.
Copyright © 2002 counterclaim.com. All Rights Reserved.