public class SchemaGenerator extends SchemaOutputResolver
| Constructor and Description |
|---|
SchemaGenerator(String fileName)
Creates a SchemaGenerator indicating the preferred name of the
generated schema file.
|
SchemaGenerator(String fileName,
File schemaDir)
Creates a SchemaGenerator indicating the preferred name of the
generated schema file and the directory in which is should be stored.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
createOutput(String namespaceUri,
String defaultFileName)
Called by the schema generation process.
|
void |
generateSchema(Class... classes)
Generates an XML Schema which includes the given classes
|
public SchemaGenerator(String fileName)
fileName - of the schemapublic void generateSchema(Class... classes) throws JAXBException, IOException
classes - to include in the schema definitionJAXBExceptionIOExceptionpublic Result createOutput(String namespaceUri, String defaultFileName) throws IOException
createOutput in class SchemaOutputResolverIOExceptionCopyright © 2009–2017 DuraSpace. All rights reserved.