jacshore / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

Expose API for obtaining validation messages and severity #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As mentioned earlier I'm using EpubCheck in tests to validate whether or not 
EPUBs generated by the Eclipse tools are good. However EpubCheck.validate(File) 
is a bit limited. It would be very useful if the actual messages could be 
obtained and also that these messages were classified by severity.

Original issue reported on code.google.com by torkildR@gmail.com on 17 May 2012 at 8:29

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 18 Jul 2012 at 3:18

GoogleCodeExporter commented 8 years ago
To access the report programatically, implements the 
com.adobe.epubcheck.api.Report interface and pass it to the alternate 
constructor as a second parameter (EpubCheck epubCheck = new EpubCheck(epub, 
report)).

This interface separates between errors, warnings and exceptions. There is no 
severity measure above that.

Original comment by markus.g...@gmail.com on 12 Oct 2012 at 9:48