public void generateSchema ( Class ... classes ) throws JAXBException , IOException { if ( ! baseDir . exists ( ) ) { baseDir . mkdirs ( ) ; } JAXBContext context = JAXBContext . newInstance ( classes ) ; context . generateSchema ( this ) ; }
Generates an XML Schema which includes the given classes