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


Constructor Summary
SimpleLxmlValidator()
           
 
Method Summary
 java.lang.String getDtdFile()
           
 javax.xml.parsers.SAXParser getSAXParser()
          Return the SAXParser we will use to parse the input stream.
 void setDtdFile(java.lang.String dtdFile)
           
 ValidationFault[] validateFiling(LxmlFiling filing)
          Parse the content of a filing and validate it against the DTD.
 
Methods inherited from class com.counterclaim.openefm.core.AbstractOpenEFMComponent
getController, setController
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.counterclaim.openefm.core.OpenEFMComponent
setController
 

Constructor Detail

SimpleLxmlValidator

public SimpleLxmlValidator()
Method Detail

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 ValidationFaults 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.