Class SVRLParser
- java.lang.Object
-
- gov.nist.secauto.decima.xml.assessment.schematron.SVRLParser
-
public class SVRLParser extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidparse(SVRLHandler handler, File file)static voidparse(SVRLHandler handler, File file, boolean validate)Parses a SVRL result using the provided handler to process SVRL elements.static voidparse(SVRLHandler handler, org.jdom2.Document document)Parses a SVRL result, provided as a JDOMDocument, using the provided handler to process SVRL elements.
-
-
-
Method Detail
-
parse
public static void parse(SVRLHandler handler, File file) throws org.jdom2.JDOMException, IOException
- Throws:
org.jdom2.JDOMExceptionIOException
-
parse
public static void parse(SVRLHandler handler, File file, boolean validate) throws org.jdom2.JDOMException, IOException
Parses a SVRL result using the provided handler to process SVRL elements.- Parameters:
handler- the handler to use to process the SVRL resultfile- the SVRL filevalidate- iftrueperform schema validation on the SVRL file- Throws:
org.jdom2.JDOMException- if an error occured while parsing the SVRL fileIOException- if an error occurred that prevented the SVRL results from being parsed
-
parse
public static void parse(SVRLHandler handler, org.jdom2.Document document)
Parses a SVRL result, provided as a JDOMDocument, using the provided handler to process SVRL elements.- Parameters:
handler- the handler to use to process the SVRL resultdocument- the SVRL results
-
-